Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/serio.h>
#include <linux/interrupt.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/io.h>
#include <linux/of_address.h>
#include <linux/of_device.h>
#include <linux/of_platform.h>
Go to the source code of this file.
Data Structures | |
struct | xps2data |
Macros | |
#define | DRIVER_NAME "xilinx_ps2" |
#define | XPS2_SRST_OFFSET 0x00000000 /* Software Reset register */ |
#define | XPS2_STATUS_OFFSET 0x00000004 /* Status register */ |
#define | XPS2_RX_DATA_OFFSET 0x00000008 /* Receive Data register */ |
#define | XPS2_TX_DATA_OFFSET 0x0000000C /* Transmit Data register */ |
#define | XPS2_GIER_OFFSET 0x0000002C /* Global Interrupt Enable reg */ |
#define | XPS2_IPISR_OFFSET 0x00000030 /* Interrupt Status register */ |
#define | XPS2_IPIER_OFFSET 0x00000038 /* Interrupt Enable register */ |
#define | XPS2_SRST_RESET 0x0000000A /* Software Reset */ |
#define | XPS2_STATUS_RX_FULL 0x00000001 /* Receive Full */ |
#define | XPS2_STATUS_TX_FULL 0x00000002 /* Transmit Full */ |
#define | XPS2_IPIXR_WDT_TOUT 0x00000001 /* Watchdog Timeout Interrupt */ |
#define | XPS2_IPIXR_TX_NOACK 0x00000002 /* Transmit No ACK Interrupt */ |
#define | XPS2_IPIXR_TX_ACK 0x00000004 /* Transmit ACK (Data) Interrupt */ |
#define | XPS2_IPIXR_RX_OVF 0x00000008 /* Receive Overflow Interrupt */ |
#define | XPS2_IPIXR_RX_ERR 0x00000010 /* Receive Error Interrupt */ |
#define | XPS2_IPIXR_RX_FULL 0x00000020 /* Receive Data Interrupt */ |
#define | XPS2_IPIXR_TX_ALL (XPS2_IPIXR_TX_NOACK | XPS2_IPIXR_TX_ACK) |
#define | XPS2_IPIXR_RX_ALL |
#define | XPS2_IPIXR_ALL |
#define | XPS2_GIER_GIE_MASK 0x80000000 |
Functions | |
MODULE_DEVICE_TABLE (of, xps2_of_match) | |
module_platform_driver (xps2_of_driver) | |
MODULE_AUTHOR ("Xilinx, Inc.") | |
MODULE_DESCRIPTION ("Xilinx XPS PS/2 driver") | |
MODULE_LICENSE ("GPL") | |
#define DRIVER_NAME "xilinx_ps2" |
Definition at line 30 of file xilinx_ps2.c.
#define XPS2_GIER_GIE_MASK 0x80000000 |
Definition at line 69 of file xilinx_ps2.c.
#define XPS2_GIER_OFFSET 0x0000002C /* Global Interrupt Enable reg */ |
Definition at line 37 of file xilinx_ps2.c.
#define XPS2_IPIER_OFFSET 0x00000038 /* Interrupt Enable register */ |
Definition at line 39 of file xilinx_ps2.c.
#define XPS2_IPISR_OFFSET 0x00000030 /* Interrupt Status register */ |
Definition at line 38 of file xilinx_ps2.c.
#define XPS2_IPIXR_ALL |
Definition at line 65 of file xilinx_ps2.c.
#define XPS2_IPIXR_RX_ALL |
Definition at line 61 of file xilinx_ps2.c.
#define XPS2_IPIXR_RX_ERR 0x00000010 /* Receive Error Interrupt */ |
Definition at line 54 of file xilinx_ps2.c.
#define XPS2_IPIXR_RX_FULL 0x00000020 /* Receive Data Interrupt */ |
Definition at line 55 of file xilinx_ps2.c.
#define XPS2_IPIXR_RX_OVF 0x00000008 /* Receive Overflow Interrupt */ |
Definition at line 53 of file xilinx_ps2.c.
#define XPS2_IPIXR_TX_ACK 0x00000004 /* Transmit ACK (Data) Interrupt */ |
Definition at line 52 of file xilinx_ps2.c.
#define XPS2_IPIXR_TX_ALL (XPS2_IPIXR_TX_NOACK | XPS2_IPIXR_TX_ACK) |
Definition at line 58 of file xilinx_ps2.c.
#define XPS2_IPIXR_TX_NOACK 0x00000002 /* Transmit No ACK Interrupt */ |
Definition at line 51 of file xilinx_ps2.c.
#define XPS2_IPIXR_WDT_TOUT 0x00000001 /* Watchdog Timeout Interrupt */ |
Definition at line 50 of file xilinx_ps2.c.
#define XPS2_RX_DATA_OFFSET 0x00000008 /* Receive Data register */ |
Definition at line 35 of file xilinx_ps2.c.
#define XPS2_SRST_OFFSET 0x00000000 /* Software Reset register */ |
Definition at line 33 of file xilinx_ps2.c.
#define XPS2_SRST_RESET 0x0000000A /* Software Reset */ |
Definition at line 42 of file xilinx_ps2.c.
#define XPS2_STATUS_OFFSET 0x00000004 /* Status register */ |
Definition at line 34 of file xilinx_ps2.c.
#define XPS2_STATUS_RX_FULL 0x00000001 /* Receive Full */ |
Definition at line 45 of file xilinx_ps2.c.
#define XPS2_STATUS_TX_FULL 0x00000002 /* Transmit Full */ |
Definition at line 46 of file xilinx_ps2.c.
#define XPS2_TX_DATA_OFFSET 0x0000000C /* Transmit Data register */ |
Definition at line 36 of file xilinx_ps2.c.
MODULE_AUTHOR | ( | " | Xilinx, |
Inc." | |||
) |
MODULE_DEVICE_TABLE | ( | of | , |
xps2_of_match | |||
) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | xps2_of_driver | ) |