Main Page | Data Structures | File List | Data Fields | Globals

spi_io.h File Reference


Detailed Description

SPI related definitions.

Author:
Andrew Roca Defines structures used by the SPI core but embedded within the PCI master structure.

#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/version.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/list.h>
#include <linux/ioport.h>
#include <linux/serial.h>
#include <linux/interrupt.h>
#include <linux/string.h>
#include <linux/spinlock.h>
#include <linux/mtd/mtd.h>
#include <linux/crypto.h>
#include <asm/uaccess.h>
#include "axis_hardware.h"

Include dependency graph for spi_io.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  spi_channel
 controls an individual spi channel More...

struct  spi_op
 structure submitted by SPI userland interface to SPI core code More...


Defines

#define MAX_AXIS_SPI_DEVICES   4
#define SPI_DATA_REGISTER_OFFSET   0x60
#define SPI_CONTROL_REGISTER_1_OFFSET   (SPI_DATA_REGISTER_OFFSET+1)
#define SPI_CONTROL_REGISTER_2_OFFSET   (SPI_DATA_REGISTER_OFFSET+2)
#define SPI_ADDRESS_REGISTER_OFFSET   (SPI_DATA_REGISTER_OFFSET+3)
#define SPI_ENABLE_BIT   (1<<7)
#define SPI_ERROR_CLEAR_BIT   (1<<0)
#define SPI_MASTER_ACTIVE   (1<<3)
#define SPI_TX_REG_EMPTY   (1<<2)
#define SPI_RX_REG_READY   (1<<1)
#define SPI_OVERRUN   (1<<0)
#define SPI_INTERRUPT_ENABLE   (1<<7)
#define SPI_MASTER_MODE   (1<<6)
#define SPI_LSB_FIRST   (1<<5)

Functions

void init_spi (struct axis_pci_device_entry *device)

Variables

file_operations spi_file_operations


Define Documentation

#define MAX_AXIS_SPI_DEVICES   4
 

#define SPI_ADDRESS_REGISTER_OFFSET   (SPI_DATA_REGISTER_OFFSET+3)
 

#define SPI_CONTROL_REGISTER_1_OFFSET   (SPI_DATA_REGISTER_OFFSET+1)
 

#define SPI_CONTROL_REGISTER_2_OFFSET   (SPI_DATA_REGISTER_OFFSET+2)
 

#define SPI_DATA_REGISTER_OFFSET   0x60
 

#define SPI_ENABLE_BIT   (1<<7)
 

#define SPI_ERROR_CLEAR_BIT   (1<<0)
 

#define SPI_INTERRUPT_ENABLE   (1<<7)
 

#define SPI_LSB_FIRST   (1<<5)
 

#define SPI_MASTER_ACTIVE   (1<<3)
 

#define SPI_MASTER_MODE   (1<<6)
 

#define SPI_OVERRUN   (1<<0)
 

#define SPI_RX_REG_READY   (1<<1)
 

#define SPI_TX_REG_EMPTY   (1<<2)
 


Function Documentation

void init_spi struct axis_pci_device_entry device  ) 
 

Here is the call graph for this function:


Variable Documentation

struct file_operations spi_file_operations
 


Generated on Fri Jan 28 12:37:32 2005 for Axis Kernel Driver by doxygen 1.3.6