Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | ps3_storage_region |
struct | ps3_storage_device |
Functions | |
int | ps3stor_setup (struct ps3_storage_device *dev, irq_handler_t handler) |
void | ps3stor_teardown (struct ps3_storage_device *dev) |
u64 | ps3stor_read_write_sectors (struct ps3_storage_device *dev, u64 lpar, u64 start_sector, u64 sectors, int write) |
u64 | ps3stor_send_command (struct ps3_storage_device *dev, u64 cmd, u64 arg1, u64 arg2, u64 arg3, u64 arg4) |
u64 ps3stor_read_write_sectors | ( | struct ps3_storage_device * | dev, |
u64 | lpar, | ||
u64 | start_sector, | ||
u64 | sectors, | ||
int | write | ||
) |
ps3stor_read_write_sectors - read/write from/to a storage device : Pointer to a struct ps3_storage_device : HV logical partition address : First sector to read/write : Number of sectors to read/write : Flag indicating write (non-zero) or read (zero)
Returns 0 for success, -1 in case of failure to submit the command, or an LV1 status value in case of other errors
Definition at line 276 of file ps3stor_lib.c.
u64 ps3stor_send_command | ( | struct ps3_storage_device * | dev, |
u64 | cmd, | ||
u64 | arg1, | ||
u64 | arg2, | ||
u64 | arg3, | ||
u64 | arg4 | ||
) |
ps3stor_send_command - send a device command to a storage device : Pointer to a struct ps3_storage_device : Command number : First command argument : Second command argument : Third command argument : Fourth command argument
Returns 0 for success, -1 in case of failure to submit the command, or an LV1 status value in case of other errors
Definition at line 326 of file ps3stor_lib.c.
int ps3stor_setup | ( | struct ps3_storage_device * | dev, |
irq_handler_t | handler | ||
) |
ps3stor_setup - Setup a storage device before use : Pointer to a struct ps3_storage_device : Pointer to an interrupt handler
Returns 0 for success, or an error code
Definition at line 148 of file ps3stor_lib.c.
void ps3stor_teardown | ( | struct ps3_storage_device * | dev | ) |
ps3stor_teardown - Tear down a storage device after use : Pointer to a struct ps3_storage_device
Definition at line 240 of file ps3stor_lib.c.