port.hh (4432:5e55857abb01) port.hh (4475:fb185cc1c845)
1/*
2 * Copyright (c) 2002-2005 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;

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

167 virtual int deviceBlockSize() { return 0; }
168
169 /** The peer port is requesting us to reply with a list of the ranges we
170 are responsible for.
171 @param resp is a list of ranges responded to
172 @param snoop is a list of ranges snooped
173 */
174 virtual void getDeviceAddressRanges(AddrRangeList &resp,
1/*
2 * Copyright (c) 2002-2005 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;

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

167 virtual int deviceBlockSize() { return 0; }
168
169 /** The peer port is requesting us to reply with a list of the ranges we
170 are responsible for.
171 @param resp is a list of ranges responded to
172 @param snoop is a list of ranges snooped
173 */
174 virtual void getDeviceAddressRanges(AddrRangeList &resp,
175 AddrRangeList &snoop)
175 bool &snoop)
176 { panic("??"); }
177
178 public:
179
180 /** Function called by associated memory device (cache, memory, iodevice)
181 in order to send a timing request to the port. Simply calls the peer
182 port receive function.
183 @return This function returns if the send was succesful in it's

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

217 /** Called by the associated device if it wishes to find out the blocksize
218 of the device on attached to the peer port.
219 */
220 int peerBlockSize() { return peer->deviceBlockSize(); }
221
222 /** Called by the associated device if it wishes to find out the address
223 ranges connected to the peer ports devices.
224 */
176 { panic("??"); }
177
178 public:
179
180 /** Function called by associated memory device (cache, memory, iodevice)
181 in order to send a timing request to the port. Simply calls the peer
182 port receive function.
183 @return This function returns if the send was succesful in it's

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

217 /** Called by the associated device if it wishes to find out the blocksize
218 of the device on attached to the peer port.
219 */
220 int peerBlockSize() { return peer->deviceBlockSize(); }
221
222 /** Called by the associated device if it wishes to find out the address
223 ranges connected to the peer ports devices.
224 */
225 void getPeerAddressRanges(AddrRangeList &resp, AddrRangeList &snoop)
225 void getPeerAddressRanges(AddrRangeList &resp, bool &snoop)
226 { peer->getDeviceAddressRanges(resp, snoop); }
227
228 /** This function is a wrapper around sendFunctional()
229 that breaks a larger, arbitrarily aligned access into
230 appropriate chunks. The default implementation can use
231 getBlockSize() to determine the block size and go from there.
232 */
233 virtual void readBlob(Addr addr, uint8_t *p, int size);

--- 67 unchanged lines hidden ---
226 { peer->getDeviceAddressRanges(resp, snoop); }
227
228 /** This function is a wrapper around sendFunctional()
229 that breaks a larger, arbitrarily aligned access into
230 appropriate chunks. The default implementation can use
231 getBlockSize() to determine the block size and go from there.
232 */
233 virtual void readBlob(Addr addr, uint8_t *p, int size);

--- 67 unchanged lines hidden ---