intdev.hh (7899:38eca2df1124) intdev.hh (7913:70b56a9ac1b2)
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;

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

79 {
80 return device->recvResponse(pkt);
81 }
82
83 // This is x86 focused, so if this class becomes generic, this would
84 // need to be moved into a subclass.
85 void sendMessage(ApicList apics,
86 TriggerIntMessage message, bool timing);
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;

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

79 {
80 return device->recvResponse(pkt);
81 }
82
83 // This is x86 focused, so if this class becomes generic, this would
84 // need to be moved into a subclass.
85 void sendMessage(ApicList apics,
86 TriggerIntMessage message, bool timing);
87
88 void recvStatusChange(Status status)
89 {
90 if (status == RangeChange) {
91 sendStatusChange(Port::RangeChange);
92 }
93 }
94
95 };
96
97 IntPort * intPort;
98
99 public:
100 IntDev(MemObject * parent, Tick latency = 0)
101 {
102 if (parent != NULL) {
103 intPort = new IntPort(parent->name() + ".int_port",
104 parent, this, latency);
105 } else {
106 intPort = NULL;
107 }
108 }
109
110 virtual ~IntDev()
111 {}
112
87 };
88
89 IntPort * intPort;
90
91 public:
92 IntDev(MemObject * parent, Tick latency = 0)
93 {
94 if (parent != NULL) {
95 intPort = new IntPort(parent->name() + ".int_port",
96 parent, this, latency);
97 } else {
98 intPort = NULL;
99 }
100 }
101
102 virtual ~IntDev()
103 {}
104
105 virtual void init();
106
113 virtual void
114 signalInterrupt(int line)
115 {
116 panic("signalInterrupt not implemented.\n");
117 }
118
119 virtual void
120 raiseInterruptPin(int number)

--- 117 unchanged lines hidden ---
107 virtual void
108 signalInterrupt(int line)
109 {
110 panic("signalInterrupt not implemented.\n");
111 }
112
113 virtual void
114 raiseInterruptPin(int number)

--- 117 unchanged lines hidden ---