fs_translating_port_proxy.hh (8799:dac1e33e07b0) fs_translating_port_proxy.hh (8861:56d011130987)
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

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

79 FSTranslatingPortProxy(ThreadContext* tc);
80
81 FSTranslatingPortProxy(Port &port);
82
83 virtual ~FSTranslatingPortProxy();
84
85 /** Version of readblob that translates virt->phys and deals
86 * with page boundries. */
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

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

79 FSTranslatingPortProxy(ThreadContext* tc);
80
81 FSTranslatingPortProxy(Port &port);
82
83 virtual ~FSTranslatingPortProxy();
84
85 /** Version of readblob that translates virt->phys and deals
86 * with page boundries. */
87 virtual void readBlob(Addr addr, uint8_t *p, int size);
87 virtual void readBlob(Addr addr, uint8_t *p, int size) const;
88
89 /** Version of writeBlob that translates virt->phys and deals
90 * with page boundries. */
88
89 /** Version of writeBlob that translates virt->phys and deals
90 * with page boundries. */
91 virtual void writeBlob(Addr addr, uint8_t *p, int size);
91 virtual void writeBlob(Addr addr, uint8_t *p, int size) const;
92
93 /**
94 * Fill size bytes starting at addr with byte value val.
95 */
92
93 /**
94 * Fill size bytes starting at addr with byte value val.
95 */
96 virtual void memsetBlob(Addr address, uint8_t v, int size);
96 virtual void memsetBlob(Addr address, uint8_t v, int size) const;
97};
98
99void CopyOut(ThreadContext *tc, void *dest, Addr src, size_t cplen);
100void CopyIn(ThreadContext *tc, Addr dest, void *source, size_t cplen);
101void CopyStringOut(ThreadContext *tc, char *dst, Addr vaddr, size_t maxlen);
102void CopyStringIn(ThreadContext *tc, char *src, Addr vaddr);
103
104#endif //__MEM_FS_PORT_PROXY_HH__
97};
98
99void CopyOut(ThreadContext *tc, void *dest, Addr src, size_t cplen);
100void CopyIn(ThreadContext *tc, Addr dest, void *source, size_t cplen);
101void CopyStringOut(ThreadContext *tc, char *dst, Addr vaddr, size_t maxlen);
102void CopyStringIn(ThreadContext *tc, char *src, Addr vaddr);
103
104#endif //__MEM_FS_PORT_PROXY_HH__