i82094aa.cc (9805:a4339e26b429) i82094aa.cc (9807:63d7362bbdf2)
1/*
2 * Copyright (c) 2008 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 25 unchanged lines hidden (view full) ---

34#include "debug/I82094AA.hh"
35#include "dev/x86/i82094aa.hh"
36#include "dev/x86/i8259.hh"
37#include "mem/packet.hh"
38#include "mem/packet_access.hh"
39#include "sim/system.hh"
40
41X86ISA::I82094AA::I82094AA(Params *p)
1/*
2 * Copyright (c) 2008 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 25 unchanged lines hidden (view full) ---

34#include "debug/I82094AA.hh"
35#include "dev/x86/i82094aa.hh"
36#include "dev/x86/i8259.hh"
37#include "mem/packet.hh"
38#include "mem/packet_access.hh"
39#include "sim/system.hh"
40
41X86ISA::I82094AA::I82094AA(Params *p)
42 : BasicPioDevice(p), IntDev(this, p->int_latency),
42 : BasicPioDevice(p), IntDevice(this, p->int_latency),
43 extIntPic(p->external_int_pic), lowestPriorityOffset(0)
44{
45 // This assumes there's only one I/O APIC in the system and since the apic
46 // id is stored in a 8-bit field with 0xff meaning broadcast, the id must
47 // be less than 0xff
48
49 assert(p->apic_id < 0xff);
50 initialApicId = id = p->apic_id;

--- 9 unchanged lines hidden (view full) ---

60 pioSize = 20;
61}
62
63void
64X86ISA::I82094AA::init()
65{
66 // The io apic must register its address ranges on both its pio port
67 // via the piodevice init() function and its int port that it inherited
43 extIntPic(p->external_int_pic), lowestPriorityOffset(0)
44{
45 // This assumes there's only one I/O APIC in the system and since the apic
46 // id is stored in a 8-bit field with 0xff meaning broadcast, the id must
47 // be less than 0xff
48
49 assert(p->apic_id < 0xff);
50 initialApicId = id = p->apic_id;

--- 9 unchanged lines hidden (view full) ---

60 pioSize = 20;
61}
62
63void
64X86ISA::I82094AA::init()
65{
66 // The io apic must register its address ranges on both its pio port
67 // via the piodevice init() function and its int port that it inherited
68 // from IntDev. Note IntDev is not a SimObject itself.
68 // from IntDevice. Note IntDevice is not a SimObject itself.
69
70 BasicPioDevice::init();
69
70 BasicPioDevice::init();
71 IntDev::init();
71 IntDevice::init();
72}
73
74BaseMasterPort &
75X86ISA::I82094AA::getMasterPort(const std::string &if_name, PortID idx)
76{
77 if (if_name == "int_master")
78 return intMasterPort;
79 return BasicPioDevice::getMasterPort(if_name, idx);

--- 218 unchanged lines hidden ---
72}
73
74BaseMasterPort &
75X86ISA::I82094AA::getMasterPort(const std::string &if_name, PortID idx)
76{
77 if (if_name == "int_master")
78 return intMasterPort;
79 return BasicPioDevice::getMasterPort(if_name, idx);

--- 218 unchanged lines hidden ---