fs_translating_port_proxy.hh (14019:4732393f8210) | fs_translating_port_proxy.hh (14196:ce364f5517f3) |
---|---|
1/* 2 * Copyright (c) 2011 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 65 unchanged lines hidden (view full) --- 74{ 75 private: 76 ThreadContext* _tc; 77 78 public: 79 80 FSTranslatingPortProxy(ThreadContext* tc); 81 | 1/* 2 * Copyright (c) 2011 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 65 unchanged lines hidden (view full) --- 74{ 75 private: 76 ThreadContext* _tc; 77 78 public: 79 80 FSTranslatingPortProxy(ThreadContext* tc); 81 |
82 FSTranslatingPortProxy(MasterPort &port, unsigned int cacheLineSize); | 82 FSTranslatingPortProxy(SendFunctionalFunc func, 83 unsigned int cacheLineSize); 84 FSTranslatingPortProxy(MasterPort &port, 85 unsigned int cacheLineSize); |
83 84 ~FSTranslatingPortProxy() {} 85 86 /** Version of tryReadblob that translates virt->phys and deals 87 * with page boundries. */ 88 bool tryReadBlob(Addr addr, void *p, int size) const override; 89 90 /** Version of tryWriteBlob that translates virt->phys and deals 91 * with page boundries. */ 92 bool tryWriteBlob(Addr addr, const void *p, int size) const override; 93 94 /** 95 * Fill size bytes starting at addr with byte value val. 96 */ 97 bool tryMemsetBlob(Addr address, uint8_t v, int size) const override; 98}; 99 100#endif //__MEM_FS_TRANSLATING_PORT_PROXY_HH__ | 86 87 ~FSTranslatingPortProxy() {} 88 89 /** Version of tryReadblob that translates virt->phys and deals 90 * with page boundries. */ 91 bool tryReadBlob(Addr addr, void *p, int size) const override; 92 93 /** Version of tryWriteBlob that translates virt->phys and deals 94 * with page boundries. */ 95 bool tryWriteBlob(Addr addr, const void *p, int size) const override; 96 97 /** 98 * Fill size bytes starting at addr with byte value val. 99 */ 100 bool tryMemsetBlob(Addr address, uint8_t v, int size) const override; 101}; 102 103#endif //__MEM_FS_TRANSLATING_PORT_PROXY_HH__ |