Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ce4100.c File Reference
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <asm/ce4100.h>
#include <asm/pci_x86.h>

Go to the source code of this file.

Data Structures

struct  sim_reg
 
struct  sim_dev_reg
 
struct  sim_reg_op
 

Macros

#define MB   (1024 * 1024)
 
#define KB   (1024)
 
#define SIZE_TO_MASK(size)   (~(size - 1))
 
#define DEFINE_REG(device, func, offset, size, init_op, read_op, write_op)
 

Functions

void sata_revid_init (struct sim_dev_reg *reg)
 
int bridge_read (unsigned int devfn, int reg, int len, u32 *value)
 
int __init ce4100_pci_init (void)
 

Macro Definition Documentation

#define DEFINE_REG (   device,
  func,
  offset,
  size,
  init_op,
  read_op,
  write_op 
)
Value:
{ PCI_DEVFN(device, func), offset, init_op, read_op, write_op,\
{0, SIZE_TO_MASK(size)} },

Definition at line 64 of file ce4100.c.

#define KB   (1024)

Definition at line 61 of file ce4100.c.

#define MB   (1024 * 1024)

Definition at line 60 of file ce4100.c.

#define SIZE_TO_MASK (   size)    (~(size - 1))

Definition at line 62 of file ce4100.c.

Function Documentation

int bridge_read ( unsigned int  devfn,
int  reg,
int  len,
u32 value 
)

Definition at line 200 of file ce4100.c.

int __init ce4100_pci_init ( void  )

Definition at line 325 of file ce4100.c.

void sata_revid_init ( struct sim_dev_reg reg)

Definition at line 107 of file ce4100.c.