Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
vuart.h File Reference
#include <asm/ps3.h>

Go to the source code of this file.

Data Structures

struct  ps3_vuart_stats
 
struct  ps3_vuart_work
 
struct  ps3_vuart_port_driver
 

Functions

int ps3_vuart_port_driver_register (struct ps3_vuart_port_driver *drv)
 
void ps3_vuart_port_driver_unregister (struct ps3_vuart_port_driver *drv)
 
int ps3_vuart_write (struct ps3_system_bus_device *dev, const void *buf, unsigned int bytes)
 
int ps3_vuart_read (struct ps3_system_bus_device *dev, void *buf, unsigned int bytes)
 
int ps3_vuart_read_async (struct ps3_system_bus_device *dev, unsigned int bytes)
 
void ps3_vuart_cancel_async (struct ps3_system_bus_device *dev)
 
void ps3_vuart_clear_rx_bytes (struct ps3_system_bus_device *dev, unsigned int bytes)
 

Function Documentation

void ps3_vuart_cancel_async ( struct ps3_system_bus_device dev)

Definition at line 723 of file ps3-vuart.c.

void ps3_vuart_clear_rx_bytes ( struct ps3_system_bus_device dev,
unsigned int  bytes 
)

ps3_vuart_clear_rx_bytes - Discard bytes received. : The struct ps3_system_bus_device instance. : Max byte count to discard, zero = all pending.

Used to clear pending rx interrupt source. Will not block.

Definition at line 431 of file ps3-vuart.c.

int ps3_vuart_port_driver_register ( struct ps3_vuart_port_driver drv)

ps3_vuart_port_driver_register - Add a vuart port device driver.

Definition at line 1244 of file ps3-vuart.c.

void ps3_vuart_port_driver_unregister ( struct ps3_vuart_port_driver drv)

ps3_vuart_port_driver_unregister - Remove a vuart port device driver.

Definition at line 1266 of file ps3-vuart.c.

int ps3_vuart_read ( struct ps3_system_bus_device dev,
void buf,
unsigned int  bytes 
)

ps3_vuart_read - The entry point for reading data from a port.

Queue data waiting at the port, and if enough bytes to satisfy the request are held in the buffer list those bytes are dequeued and copied to the caller's buffer. Emptied list buffers are retiered. If the request cannot be statified by bytes held in the list buffers -EAGAIN is returned.

Definition at line 615 of file ps3-vuart.c.

int ps3_vuart_read_async ( struct ps3_system_bus_device dev,
unsigned int  bytes 
)

Definition at line 689 of file ps3-vuart.c.

int ps3_vuart_write ( struct ps3_system_bus_device dev,
const void buf,
unsigned int  bytes 
)

ps3_vuart_write - the entry point for writing data to a port : The struct ps3_system_bus_device instance.

If the port is idle on entry as much of the incoming data is written to the port as the port will accept. Otherwise a list buffer is created and any remaning incoming data is copied to that buffer. The buffer is then enqueued for transmision via the transmit interrupt.

Definition at line 491 of file ps3-vuart.c.