Switchtec Userspace
PROJECT_NUMBER = PROJECT_NUMBER=PROJECT_NUMBER = 2.2
|
Access the GAS through MRPC commands. More...
Functions | |
void | gas_mrpc_memcpy_to_gas (struct switchtec_dev *dev, void __gas *dest, const void *src, size_t n) |
Copy data to the GAS using MRPC commands. More... | |
void | gas_mrpc_memcpy_from_gas (struct switchtec_dev *dev, void *dest, const void __gas *src, size_t n) |
Copy data from the GAS using MRPC commands. More... | |
ssize_t | gas_mrpc_write_from_gas (struct switchtec_dev *dev, int fd, const void __gas *src, size_t n) |
Call write() with data from the GAS using an MRPC command. More... | |
Access the GAS through MRPC commands.
Access the gas through MRPC commands. The linux kernel may reject these commands if the process has insufficient permission.
MRPC commands respect the PAX ID where as standard gas access mechanisms may not.
These functions should generally not be used unless you really know what you are doing. The regular gas accessors (ie. gas_*()) will call these functions when switchtec_set_pax_id() has been used.
void gas_mrpc_memcpy_from_gas | ( | struct switchtec_dev * | dev, |
void * | dest, | ||
const void __gas * | src, | ||
size_t | n | ||
) |
Copy data from the GAS using MRPC commands.
[in] | dev | Switchtec device handle |
[out] | dest | Destination buffer |
[in] | src | Source gas address |
[in] | n | Number of bytes to transfer |
Definition at line 90 of file gas_mrpc.c.
void gas_mrpc_memcpy_to_gas | ( | struct switchtec_dev * | dev, |
void __gas * | dest, | ||
const void * | src, | ||
size_t | n | ||
) |
Copy data to the GAS using MRPC commands.
[in] | dev | Switchtec device handle |
[out] | dest | Destination gas address |
[in] | src | Source data buffer |
[in] | n | Number of bytes to transfer |
Definition at line 57 of file gas_mrpc.c.
ssize_t gas_mrpc_write_from_gas | ( | struct switchtec_dev * | dev, |
int | fd, | ||
const void __gas * | src, | ||
size_t | n | ||
) |
Call write() with data from the GAS using an MRPC command.
[in] | dev | Switchtec device handle |
[in] | fd | Destination buffer |
[in] | src | Source gas address |
[in] | n | Number of bytes to transfer |
Definition at line 120 of file gas_mrpc.c.