Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
ps3stor_lib.c File Reference
#include <linux/dma-mapping.h>
#include <linux/module.h>
#include <asm/lv1call.h>
#include <asm/ps3stor.h>

Go to the source code of this file.

Data Structures

struct  ps3_flash_workaround
 

Functions

int ps3stor_setup (struct ps3_storage_device *dev, irq_handler_t handler)
 
 EXPORT_SYMBOL_GPL (ps3stor_setup)
 
void ps3stor_teardown (struct ps3_storage_device *dev)
 
 EXPORT_SYMBOL_GPL (ps3stor_teardown)
 
u64 ps3stor_read_write_sectors (struct ps3_storage_device *dev, u64 lpar, u64 start_sector, u64 sectors, int write)
 
 EXPORT_SYMBOL_GPL (ps3stor_read_write_sectors)
 
u64 ps3stor_send_command (struct ps3_storage_device *dev, u64 cmd, u64 arg1, u64 arg2, u64 arg3, u64 arg4)
 
 EXPORT_SYMBOL_GPL (ps3stor_send_command)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("PS3 Storage Bus Library")
 
 MODULE_AUTHOR ("Sony Corporation")
 

Function Documentation

EXPORT_SYMBOL_GPL ( ps3stor_setup  )
EXPORT_SYMBOL_GPL ( ps3stor_teardown  )
EXPORT_SYMBOL_GPL ( ps3stor_read_write_sectors  )
EXPORT_SYMBOL_GPL ( ps3stor_send_command  )
MODULE_AUTHOR ( "Sony Corporation"  )
MODULE_DESCRIPTION ( "PS3 Storage Bus Library"  )
MODULE_LICENSE ( "GPL"  )
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.