Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
maple.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/list.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/maple.h>
#include <linux/dma-mapping.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <asm/cacheflush.h>
#include <asm/dma.h>
#include <asm/io.h>
#include <mach/dma.h>
#include <mach/sysasic.h>

Go to the source code of this file.

Data Structures

struct  maple_device_specify
 

Functions

 MODULE_AUTHOR ("Adrian McMenamin <[email protected]>")
 
 MODULE_DESCRIPTION ("Maple bus driver for Dreamcast")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_SUPPORTED_DEVICE ("{{SEGA, Dreamcast/Maple}}")
 
int maple_driver_register (struct maple_driver *drv)
 
 EXPORT_SYMBOL_GPL (maple_driver_register)
 
void maple_driver_unregister (struct maple_driver *drv)
 
 EXPORT_SYMBOL_GPL (maple_driver_unregister)
 
void maple_getcond_callback (struct maple_device *dev, void(*callback)(struct mapleq *mq), unsigned long interval, unsigned long function)
 
 EXPORT_SYMBOL_GPL (maple_getcond_callback)
 
int maple_add_packet (struct maple_device *mdev, u32 function, u32 command, size_t length, void *data)
 
 EXPORT_SYMBOL_GPL (maple_add_packet)
 
 EXPORT_SYMBOL_GPL (maple_bus_type)
 
 fs_initcall (maple_bus_init)
 

Variables

struct bus_type maple_bus_type
 

Function Documentation

EXPORT_SYMBOL_GPL ( maple_driver_register  )
EXPORT_SYMBOL_GPL ( maple_driver_unregister  )
EXPORT_SYMBOL_GPL ( maple_getcond_callback  )
EXPORT_SYMBOL_GPL ( maple_add_packet  )
EXPORT_SYMBOL_GPL ( maple_bus_type  )
fs_initcall ( maple_bus_init  )
int maple_add_packet ( struct maple_device mdev,
u32  function,
u32  command,
size_t  length,
void data 
)

maple_add_packet - add a single instruction to the maple bus queue : maple device : function on device being queried : maple command to add : length of command string (in 32 bit words) : remainder of command string

Definition at line 157 of file maple.c.

int maple_driver_register ( struct maple_driver drv)

maple_driver_register - register a maple driver : maple driver to be registered.

Registers the passed in , while updating the bus type. Devices with matching function IDs will be automatically probed.

Definition at line 71 of file maple.c.

void maple_driver_unregister ( struct maple_driver drv)

maple_driver_unregister - unregister a maple driver. : maple driver to unregister.

Cleans up after maple_driver_register(). To be invoked in the exit path of any module drivers.

Definition at line 89 of file maple.c.

void maple_getcond_callback ( struct maple_device dev,
void(*)(struct mapleq *mq)  callback,
unsigned long  interval,
unsigned long  function 
)

maple_getcond_callback - setup handling MAPLE_COMMAND_GETCOND : device responding : handler callback : interval in jiffies between callbacks : the function code for the device

Definition at line 121 of file maple.c.

MODULE_AUTHOR ( "Adrian McMenamin <[email protected]>"  )
MODULE_DESCRIPTION ( "Maple bus driver for Dreamcast"  )
MODULE_LICENSE ( "GPL v2 )
MODULE_SUPPORTED_DEVICE ( "{{SEGA, Dreamcast/Maple}}"  )

Variable Documentation

struct bus_type maple_bus_type
Initial value:
= {
.name = "maple",
.match = maple_match_bus_driver,
.uevent = maple_bus_uevent,
}

Definition at line 783 of file maple.c.