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

Go to the source code of this file.

Data Structures

struct  hp_hardware
 
struct  io_module
 
struct  bc_module
 

Macros

#define HWTYPE_ANY_ID   PA_HWTYPE_ANY_ID
 
#define HVERSION_ANY_ID   PA_HVERSION_ANY_ID
 
#define HVERSION_REV_ANY_ID   PA_HVERSION_REV_ANY_ID
 
#define SVERSION_ANY_ID   PA_SVERSION_ANY_ID
 
#define HPHW_NPROC   0
 
#define HPHW_MEMORY   1
 
#define HPHW_B_DMA   2
 
#define HPHW_OBSOLETE   3
 
#define HPHW_A_DMA   4
 
#define HPHW_A_DIRECT   5
 
#define HPHW_OTHER   6
 
#define HPHW_BCPORT   7
 
#define HPHW_CIO   8
 
#define HPHW_CONSOLE   9
 
#define HPHW_FIO   10
 
#define HPHW_BA   11
 
#define HPHW_IOA   12
 
#define HPHW_BRIDGE   13
 
#define HPHW_FABRIC   14
 
#define HPHW_MC   15
 
#define HPHW_FAULTY   31
 

Enumerations

enum  cpu_type {
  CPU_MORGAN, CPU_AT32AP, CPU_MAX, pcx = 0,
  pcxs = 1, pcxt = 2, pcxt_ = 3, pcxl = 4,
  pcxl2 = 5, pcxu = 6, pcxu_ = 7, pcxw = 8,
  pcxw_ = 9, pcxw2 = 10, mako = 11, mako2 = 12,
  CPU_SH7619, CPU_SH7201, CPU_SH7203, CPU_SH7206,
  CPU_SH7263, CPU_SH7264, CPU_SH7269, CPU_MXG,
  CPU_SH7705, CPU_SH7706, CPU_SH7707, CPU_SH7708,
  CPU_SH7708S, CPU_SH7708R, CPU_SH7709, CPU_SH7709A,
  CPU_SH7710, CPU_SH7712, CPU_SH7720, CPU_SH7721,
  CPU_SH7729, CPU_SH7750, CPU_SH7750S, CPU_SH7750R,
  CPU_SH7751, CPU_SH7751R, CPU_SH7760, CPU_SH4_202,
  CPU_SH4_501, CPU_SH7763, CPU_SH7770, CPU_SH7780,
  CPU_SH7781, CPU_SH7785, CPU_SH7786, CPU_SH7723,
  CPU_SH7724, CPU_SH7757, CPU_SH7734, CPU_SHX3,
  CPU_SH7343, CPU_SH7722, CPU_SH7366, CPU_SH7372,
  CPU_SH5_101, CPU_SH5_103, CPU_SH_NONE
}
 

Functions

const charparisc_hardware_description (struct parisc_device_id *id)
 
enum cpu_type parisc_get_cpu_type (unsigned long hversion)
 
struct parisc_devicealloc_pa_dev (unsigned long hpa, struct hardware_path *path)
 
int register_parisc_device (struct parisc_device *dev)
 
int register_parisc_driver (struct parisc_driver *driver)
 
int count_parisc_driver (struct parisc_driver *driver)
 
int unregister_parisc_driver (struct parisc_driver *driver)
 
void walk_central_bus (void)
 
struct parisc_devicefind_pa_parent_type (const struct parisc_device *, int)
 
void print_parisc_devices (void)
 
charprint_pa_hwpath (struct parisc_device *dev, char *path)
 
charprint_pci_hwpath (struct pci_dev *dev, char *path)
 
void get_pci_node_path (struct pci_dev *dev, struct hardware_path *path)
 
void init_parisc_bus (void)
 
struct devicehwpath_to_device (struct hardware_path *modpath)
 
void device_to_hwpath (struct device *dev, struct hardware_path *path)
 
void do_memory_inventory (void)
 
void do_device_inventory (void)
 

Variables

const char *const cpu_name_version [][2]
 

Macro Definition Documentation

#define HPHW_A_DIRECT   5

Definition at line 84 of file hardware.h.

#define HPHW_A_DMA   4

Definition at line 83 of file hardware.h.

#define HPHW_B_DMA   2

Definition at line 81 of file hardware.h.

#define HPHW_BA   11

Definition at line 90 of file hardware.h.

#define HPHW_BCPORT   7

Definition at line 86 of file hardware.h.

#define HPHW_BRIDGE   13

Definition at line 92 of file hardware.h.

#define HPHW_CIO   8

Definition at line 87 of file hardware.h.

#define HPHW_CONSOLE   9

Definition at line 88 of file hardware.h.

#define HPHW_FABRIC   14

Definition at line 93 of file hardware.h.

#define HPHW_FAULTY   31

Definition at line 95 of file hardware.h.

#define HPHW_FIO   10

Definition at line 89 of file hardware.h.

#define HPHW_IOA   12

Definition at line 91 of file hardware.h.

#define HPHW_MC   15

Definition at line 94 of file hardware.h.

#define HPHW_MEMORY   1

Definition at line 80 of file hardware.h.

#define HPHW_NPROC   0

Definition at line 79 of file hardware.h.

#define HPHW_OBSOLETE   3

Definition at line 82 of file hardware.h.

#define HPHW_OTHER   6

Definition at line 85 of file hardware.h.

#define HVERSION_ANY_ID   PA_HVERSION_ANY_ID

Definition at line 7 of file hardware.h.

#define HVERSION_REV_ANY_ID   PA_HVERSION_REV_ANY_ID

Definition at line 8 of file hardware.h.

#define HWTYPE_ANY_ID   PA_HWTYPE_ANY_ID

Definition at line 6 of file hardware.h.

#define SVERSION_ANY_ID   PA_SVERSION_ANY_ID

Definition at line 9 of file hardware.h.

Enumeration Type Documentation

enum cpu_type
Enumerator:
CPU_MORGAN 
CPU_AT32AP 
CPU_MAX 
pcx 
pcxs 
pcxt 
pcxt_ 
pcxl 
pcxl2 
pcxu 
pcxu_ 
pcxw 
pcxw_ 
pcxw2 
mako 
mako2 
CPU_SH7619 
CPU_SH7201 
CPU_SH7203 
CPU_SH7206 
CPU_SH7263 
CPU_SH7264 
CPU_SH7269 
CPU_MXG 
CPU_SH7705 
CPU_SH7706 
CPU_SH7707 
CPU_SH7708 
CPU_SH7708S 
CPU_SH7708R 
CPU_SH7709 
CPU_SH7709A 
CPU_SH7710 
CPU_SH7712 
CPU_SH7720 
CPU_SH7721 
CPU_SH7729 
CPU_SH7750 
CPU_SH7750S 
CPU_SH7750R 
CPU_SH7751 
CPU_SH7751R 
CPU_SH7760 
CPU_SH4_202 
CPU_SH4_501 
CPU_SH7763 
CPU_SH7770 
CPU_SH7780 
CPU_SH7781 
CPU_SH7785 
CPU_SH7786 
CPU_SH7723 
CPU_SH7724 
CPU_SH7757 
CPU_SH7734 
CPU_SHX3 
CPU_SH7343 
CPU_SH7722 
CPU_SH7366 
CPU_SH7372 
CPU_SH5_101 
CPU_SH5_103 
CPU_SH_NONE 

Definition at line 21 of file hardware.h.

Function Documentation

struct parisc_device* alloc_pa_dev ( unsigned long  hpa,
struct hardware_path path 
)
read

Definition at line 487 of file drivers.c.

int count_parisc_driver ( struct parisc_driver driver)

count_parisc_driver - count # of devices this driver would match : the PA-RISC driver to try

Use by IOMMU support to "guess" the right size IOPdir. Formula is something like memsize/(num_iommu * entry_size).

Definition at line 208 of file drivers.c.

void device_to_hwpath ( struct device dev,
struct hardware_path path 
)

device_to_hwpath - Populates the hwpath corresponding to the given device.

Parameters
devthe target device
pathpointer to a previously allocated hwpath struct to be filled in

Definition at line 768 of file drivers.c.

void do_device_inventory ( void  )

Definition at line 594 of file inventory.c.

void do_memory_inventory ( void  )

Definition at line 567 of file inventory.c.

struct parisc_device* find_pa_parent_type ( const struct parisc_device padev,
int  type 
)
read

find_pa_parent_type - Find a parent of a specific type : The device to start searching from : The device type to search for.

Walks up the device tree looking for a device of the specified type. If it finds it, it returns it. If not, it returns NULL.

Definition at line 272 of file drivers.c.

void get_pci_node_path ( struct pci_dev dev,
struct hardware_path path 
)
struct device* hwpath_to_device ( struct hardware_path modpath)
read

hwpath_to_device - Finds the generic device corresponding to a given hardware path. : the hardware path.

Returns
: The target device, NULL if not found.

Definition at line 745 of file drivers.c.

void init_parisc_bus ( void  )

init_parisc_bus - Some preparation to be done before inventory

Definition at line 898 of file drivers.c.

enum cpu_type parisc_get_cpu_type ( unsigned long  hversion)

Definition at line 1370 of file hardware.c.

const char* parisc_hardware_description ( struct parisc_device_id id)

Definition at line 1331 of file hardware.c.

char* print_pa_hwpath ( struct parisc_device dev,
char output 
)

print_pa_hwpath - Returns hardware path for PA devices dev: The device to return the path for output: Pointer to a previously-allocated array to place the path in.

This function fills in the output array with a human-readable path to a PA device. This string is compatible with that used by PDC, and may be printed on the outside of the box.

Definition at line 348 of file drivers.c.

void print_parisc_devices ( void  )

print_parisc_devices - Print out a list of devices found in this system

Definition at line 920 of file drivers.c.

char* print_pci_hwpath ( struct pci_dev dev,
char path 
)
int register_parisc_device ( struct parisc_device dev)

register_parisc_device - Locate a driver to manage this device. : The parisc device.

Search the driver list for a driver that is willing to manage this device.

Definition at line 631 of file drivers.c.

int register_parisc_driver ( struct parisc_driver driver)

register_parisc_driver - Register this driver if it can handle a device : the PA-RISC driver to try

Definition at line 153 of file drivers.c.

int unregister_parisc_driver ( struct parisc_driver driver)

unregister_parisc_driver - Unregister this driver from the list of drivers : the PA-RISC driver to unregister

Definition at line 226 of file drivers.c.

void walk_central_bus ( void  )

walk_central_bus - Find devices attached to the central bus

PDC doesn't tell us about all devices in the system. This routine finds devices connected to the central bus.

Definition at line 869 of file drivers.c.

Variable Documentation

const char* const cpu_name_version[][2]

Definition at line 1314 of file hardware.c.