Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ip22-gio.c File Reference
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <asm/addrspace.h>
#include <asm/paccess.h>
#include <asm/gio_device.h>
#include <asm/sgi/gio.h>
#include <asm/sgi/hpc3.h>
#include <asm/sgi/mc.h>
#include <asm/sgi/ip22.h>

Go to the source code of this file.

Macros

#define HQ2_MYSTERY_OFFS   0x6A07C
 
#define NEWPORT_USTATUS_OFFS   0xF133C
 

Functions

struct gio_device_idgio_match_device (const struct gio_device_id *match, const struct gio_device *dev)
 
 EXPORT_SYMBOL_GPL (gio_match_device)
 
struct gio_devicegio_dev_get (struct gio_device *dev)
 
 EXPORT_SYMBOL_GPL (gio_dev_get)
 
void gio_dev_put (struct gio_device *dev)
 
 EXPORT_SYMBOL_GPL (gio_dev_put)
 
void gio_release_dev (struct device *dev)
 
 EXPORT_SYMBOL_GPL (gio_release_dev)
 
int gio_device_register (struct gio_device *giodev)
 
 EXPORT_SYMBOL_GPL (gio_device_register)
 
void gio_device_unregister (struct gio_device *giodev)
 
 EXPORT_SYMBOL_GPL (gio_device_unregister)
 
int gio_register_driver (struct gio_driver *drv)
 
 EXPORT_SYMBOL_GPL (gio_register_driver)
 
void gio_unregister_driver (struct gio_driver *drv)
 
 EXPORT_SYMBOL_GPL (gio_unregister_driver)
 
void gio_set_master (struct gio_device *dev)
 
 EXPORT_SYMBOL_GPL (gio_set_master)
 
void ip22_gio_set_64bit (int slotno)
 
int __init ip22_gio_init (void)
 
 subsys_initcall (ip22_gio_init)
 

Macro Definition Documentation

#define HQ2_MYSTERY_OFFS   0x6A07C

Definition at line 309 of file ip22-gio.c.

#define NEWPORT_USTATUS_OFFS   0xF133C

Definition at line 310 of file ip22-gio.c.

Function Documentation

EXPORT_SYMBOL_GPL ( gio_match_device  )
EXPORT_SYMBOL_GPL ( gio_dev_get  )
EXPORT_SYMBOL_GPL ( gio_dev_put  )
EXPORT_SYMBOL_GPL ( gio_release_dev  )
EXPORT_SYMBOL_GPL ( gio_device_register  )
EXPORT_SYMBOL_GPL ( gio_device_unregister  )
EXPORT_SYMBOL_GPL ( gio_register_driver  )
EXPORT_SYMBOL_GPL ( gio_unregister_driver  )
EXPORT_SYMBOL_GPL ( gio_set_master  )
struct gio_device* gio_dev_get ( struct gio_device dev)
read

Definition at line 53 of file ip22-gio.c.

void gio_dev_put ( struct gio_device dev)

Definition at line 67 of file ip22-gio.c.

int gio_device_register ( struct gio_device giodev)

Definition at line 90 of file ip22-gio.c.

void gio_device_unregister ( struct gio_device giodev)

Definition at line 98 of file ip22-gio.c.

struct gio_device_id* gio_match_device ( const struct gio_device_id match,
const struct gio_device dev 
)
read

gio_match_device - Tell if an of_device structure has a matching gio_match structure : array of of device match structures to search in : the of device structure to match against

Used by a driver to check whether an of_device present in the system is in its list of supported devices.

Definition at line 40 of file ip22-gio.c.

int gio_register_driver ( struct gio_driver drv)

Definition at line 219 of file ip22-gio.c.

void gio_release_dev ( struct device dev)

gio_release_dev - free an gio device structure when all users of it are finished. : device that's been disconnected

Will be called only by the device core when all users of this gio device are done.

Definition at line 81 of file ip22-gio.c.

void gio_set_master ( struct gio_device dev)

Definition at line 239 of file ip22-gio.c.

void gio_unregister_driver ( struct gio_driver drv)

Definition at line 233 of file ip22-gio.c.

int __init ip22_gio_init ( void  )

Definition at line 397 of file ip22-gio.c.

void ip22_gio_set_64bit ( int  slotno)

Definition at line 258 of file ip22-gio.c.

subsys_initcall ( ip22_gio_init  )

Variable Documentation

Definition at line 18 of file ip22-gio.c.

const char* name

Definition at line 17 of file ip22-gio.c.