Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
system-bus.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/export.h>
#include <linux/dma-mapping.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <asm/udbg.h>
#include <asm/lv1call.h>
#include <asm/firmware.h>
#include <asm/cell-regs.h>
#include "platform.h"

Go to the source code of this file.

Macros

#define dump_mmio_region(_a)   _dump_mmio_region(_a, __func__, __LINE__)
 

Functions

int ps3_open_hv_device (struct ps3_system_bus_device *dev)
 
 EXPORT_SYMBOL_GPL (ps3_open_hv_device)
 
int ps3_close_hv_device (struct ps3_system_bus_device *dev)
 
 EXPORT_SYMBOL_GPL (ps3_close_hv_device)
 
int ps3_mmio_region_create (struct ps3_mmio_region *r)
 
 EXPORT_SYMBOL_GPL (ps3_mmio_region_create)
 
int ps3_free_mmio_region (struct ps3_mmio_region *r)
 
 EXPORT_SYMBOL_GPL (ps3_free_mmio_region)
 
int ps3_mmio_region_init (struct ps3_system_bus_device *dev, struct ps3_mmio_region *r, unsigned long bus_addr, unsigned long len, enum ps3_mmio_page_size page_size)
 
 EXPORT_SYMBOL_GPL (ps3_mmio_region_init)
 
 core_initcall (ps3_system_bus_init)
 
int ps3_system_bus_device_register (struct ps3_system_bus_device *dev)
 
 EXPORT_SYMBOL_GPL (ps3_system_bus_device_register)
 
int ps3_system_bus_driver_register (struct ps3_system_bus_driver *drv)
 
 EXPORT_SYMBOL_GPL (ps3_system_bus_driver_register)
 
void ps3_system_bus_driver_unregister (struct ps3_system_bus_driver *drv)
 
 EXPORT_SYMBOL_GPL (ps3_system_bus_driver_unregister)
 

Variables

struct {
   struct mutex   mutex
 
   int   sb_11
 
   int   sb_12
 
   int   gpu
 
usage_hack
 
struct bus_type ps3_system_bus_type
 

Macro Definition Documentation

#define dump_mmio_region (   _a)    _dump_mmio_region(_a, __func__, __LINE__)

Definition at line 241 of file system-bus.c.

Function Documentation

core_initcall ( ps3_system_bus_init  )
EXPORT_SYMBOL_GPL ( ps3_open_hv_device  )
EXPORT_SYMBOL_GPL ( ps3_close_hv_device  )
EXPORT_SYMBOL_GPL ( ps3_mmio_region_create  )
EXPORT_SYMBOL_GPL ( ps3_free_mmio_region  )
EXPORT_SYMBOL_GPL ( ps3_mmio_region_init  )
EXPORT_SYMBOL_GPL ( ps3_system_bus_device_register  )
EXPORT_SYMBOL_GPL ( ps3_system_bus_driver_register  )
EXPORT_SYMBOL_GPL ( ps3_system_bus_driver_unregister  )
int ps3_close_hv_device ( struct ps3_system_bus_device dev)

Definition at line 203 of file system-bus.c.

int ps3_free_mmio_region ( struct ps3_mmio_region r)

Definition at line 306 of file system-bus.c.

int ps3_mmio_region_create ( struct ps3_mmio_region r)

Definition at line 277 of file system-bus.c.

int ps3_mmio_region_init ( struct ps3_system_bus_device dev,
struct ps3_mmio_region r,
unsigned long  bus_addr,
unsigned long  len,
enum ps3_mmio_page_size  page_size 
)

struct ps3_mmio_region_init - Helper to initialize structure variables

Helper to properly initialize variables prior to calling ps3_system_bus_device_register.

Definition at line 323 of file system-bus.c.

int ps3_open_hv_device ( struct ps3_system_bus_device dev)

Definition at line 165 of file system-bus.c.

int ps3_system_bus_device_register ( struct ps3_system_bus_device dev)

ps3_system_bus_device_register - add a device to the system bus

ps3_system_bus_device_register() expects the dev object to be allocated dynamically by the caller. The system bus takes ownership of the dev object and frees the object in ps3_system_bus_release_device().

Definition at line 744 of file system-bus.c.

int ps3_system_bus_driver_register ( struct ps3_system_bus_driver drv)

Definition at line 788 of file system-bus.c.

void ps3_system_bus_driver_unregister ( struct ps3_system_bus_driver drv)

Definition at line 806 of file system-bus.c.

Variable Documentation

int gpu

Definition at line 44 of file system-bus.c.

Definition at line 41 of file system-bus.c.

struct bus_type ps3_system_bus_type
Initial value:
= {
.name = "ps3_system_bus",
.match = ps3_system_bus_match,
.uevent = ps3_system_bus_uevent,
.probe = ps3_system_bus_probe,
.remove = ps3_system_bus_remove,
.shutdown = ps3_system_bus_shutdown,
.dev_attrs = ps3_system_bus_dev_attrs,
}

Definition at line 480 of file system-bus.c.

int sb_11

Definition at line 42 of file system-bus.c.

int sb_12

Definition at line 43 of file system-bus.c.

struct { ... } usage_hack