1 #ifndef _TESTDEV_H_ 2 #define _TESTDEV_H_ 3 4 #include "devicemap.h" 5 6 #define TEST_BASE 0x02010000 7 8 class TestDev : public DeviceMap { 9 public: 10 uint32 *words; 11 TestDev (); ~TestDev()12 virtual ~TestDev() { } 13 void init(); 14 uint32 fetch_word (uint32 offset, int mode, DeviceExc *client); 15 void store_word (uint32 offset, uint32 data, DeviceExc *client); descriptor_str()16 const char *descriptor_str () const { return "Test Device"; } 17 }; 18 19 #endif /* _TESTDEV_H_ */ 20