Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
m32r_pcc.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/timer.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/workqueue.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/bitops.h>
#include <asm/irq.h>
#include <asm/io.h>
#include <asm/addrspace.h>
#include <pcmcia/ss.h>
#include "m32r_pcc.h"

Go to the source code of this file.

Data Structures

struct  pcc_socket
 
struct  pcc_t
 

Macros

#define PCC0_IRQ   24
 
#define PCC1_IRQ   25
 
#define CHAOS_PCC_DEBUG
 
#define PCC_DEBUG_DBEX
 
#define IS_REGISTERED   0x2000
 
#define IS_ALIVE   0x8000
 
#define LOCKED(x)
 

Typedefs

typedef enum pcc_space pcc_as_t
 
typedef struct pcc_socket pcc_socket_t
 
typedef struct pcc_t pcc_t
 

Enumerations

enum  pcc_space {
  as_none = 0, as_comm, as_attr, as_io,
  as_none = 0, as_comm, as_attr, as_io
}
 

Functions

void pcc_iorw (int sock, unsigned long port, void *buf, size_t size, size_t nmemb, int wr, int flag)
 
void pcc_ioread (int sock, unsigned long port, void *buf, size_t size, size_t nmemb, int flag)
 
void pcc_iowrite (int sock, unsigned long port, void *buf, size_t size, size_t nmemb, int flag)
 
 module_init (init_m32r_pcc)
 
 module_exit (exit_m32r_pcc)
 
 MODULE_LICENSE ("Dual MPL/GPL")
 

Macro Definition Documentation

#define CHAOS_PCC_DEBUG

Definition at line 37 of file m32r_pcc.c.

#define IS_ALIVE   0x8000

Definition at line 244 of file m32r_pcc.c.

#define IS_REGISTERED   0x2000

Definition at line 243 of file m32r_pcc.c.

#define LOCKED (   x)
Value:
do { \
int retval; \
unsigned long flags; \
spin_lock_irqsave(&pcc_lock, flags); \
retval = x; \
spin_unlock_irqrestore(&pcc_lock, flags); \
return retval; \
} while (0)

Definition at line 599 of file m32r_pcc.c.

#define PCC0_IRQ   24

Definition at line 32 of file m32r_pcc.c.

#define PCC1_IRQ   25

Definition at line 33 of file m32r_pcc.c.

#define PCC_DEBUG_DBEX

Definition at line 42 of file m32r_pcc.c.

Typedef Documentation

typedef enum pcc_space pcc_as_t
typedef struct pcc_t pcc_t

Enumeration Type Documentation

enum pcc_space
Enumerator:
as_none 
as_comm 
as_attr 
as_io 
as_none 
as_comm 
as_attr 
as_io 

Definition at line 48 of file m32r_pcc.c.

Function Documentation

module_exit ( exit_m32r_pcc  )
module_init ( init_m32r_pcc  )
MODULE_LICENSE ( "Dual MPL/GPL"  )
void pcc_ioread ( int  sock,
unsigned long  port,
void buf,
size_t  size,
size_t  nmemb,
int  flag 
)

Definition at line 233 of file m32r_pcc.c.

void pcc_iorw ( int  sock,
unsigned long  port,
void buf,
size_t  size,
size_t  nmemb,
int  wr,
int  flag 
)

Definition at line 84 of file m32r_pcc.c.

void pcc_iowrite ( int  sock,
unsigned long  port,
void buf,
size_t  size,
size_t  nmemb,
int  flag 
)

Definition at line 237 of file m32r_pcc.c.