Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
tpci200.h File Reference
#include <linux/limits.h>
#include <linux/pci.h>
#include <linux/spinlock.h>
#include <linux/swab.h>
#include <linux/io.h>
#include "../ipack.h"

Go to the source code of this file.

Data Structures

struct  tpci200_regs
 
struct  slot_irq
 
struct  tpci200_slot
 
struct  tpci200_infos
 
struct  tpci200_board
 

Macros

#define TPCI200_NB_SLOT   0x4
 
#define TPCI200_NB_BAR   0x6
 
#define TPCI200_VENDOR_ID   0x1498
 
#define TPCI200_DEVICE_ID   0x30C8
 
#define TPCI200_SUBVENDOR_ID   0x1498
 
#define TPCI200_SUBDEVICE_ID   0x300A
 
#define TPCI200_CFG_MEM_BAR   0
 
#define TPCI200_IP_INTERFACE_BAR   2
 
#define TPCI200_IO_ID_INT_SPACES_BAR   3
 
#define TPCI200_MEM16_SPACE_BAR   4
 
#define TPCI200_MEM8_SPACE_BAR   5
 
#define TPCI200_IFACE_SIZE   0x100
 
#define TPCI200_IO_SPACE_OFF   0x0000
 
#define TPCI200_IO_SPACE_GAP   0x0100
 
#define TPCI200_IO_SPACE_SIZE   0x0080
 
#define TPCI200_ID_SPACE_OFF   0x0080
 
#define TPCI200_ID_SPACE_GAP   0x0100
 
#define TPCI200_ID_SPACE_SIZE   0x0040
 
#define TPCI200_INT_SPACE_OFF   0x00C0
 
#define TPCI200_INT_SPACE_GAP   0x0100
 
#define TPCI200_INT_SPACE_SIZE   0x0040
 
#define TPCI200_IOIDINT_SIZE   0x0400
 
#define TPCI200_MEM8_GAP   0x00400000
 
#define TPCI200_MEM8_SIZE   0x00400000
 
#define TPCI200_MEM16_GAP   0x00800000
 
#define TPCI200_MEM16_SIZE   0x00800000
 
#define TPCI200_INT0_EN   0x0040
 
#define TPCI200_INT1_EN   0x0080
 
#define TPCI200_INT0_EDGE   0x0010
 
#define TPCI200_INT1_EDGE   0x0020
 
#define TPCI200_ERR_INT_EN   0x0008
 
#define TPCI200_TIME_INT_EN   0x0004
 
#define TPCI200_RECOVER_EN   0x0002
 
#define TPCI200_CLK32   0x0001
 
#define TPCI200_A_RESET   0x0001
 
#define TPCI200_B_RESET   0x0002
 
#define TPCI200_C_RESET   0x0004
 
#define TPCI200_D_RESET   0x0008
 
#define TPCI200_A_TIMEOUT   0x1000
 
#define TPCI200_B_TIMEOUT   0x2000
 
#define TPCI200_C_TIMEOUT   0x4000
 
#define TPCI200_D_TIMEOUT   0x8000
 
#define TPCI200_A_ERROR   0x0100
 
#define TPCI200_B_ERROR   0x0200
 
#define TPCI200_C_ERROR   0x0400
 
#define TPCI200_D_ERROR   0x0800
 
#define TPCI200_A_INT0   0x0001
 
#define TPCI200_A_INT1   0x0002
 
#define TPCI200_B_INT0   0x0004
 
#define TPCI200_B_INT1   0x0008
 
#define TPCI200_C_INT0   0x0010
 
#define TPCI200_C_INT1   0x0020
 
#define TPCI200_D_INT0   0x0040
 
#define TPCI200_D_INT1   0x0080
 
#define TPCI200_SLOT_INT_MASK   0x00FF
 
#define LAS1_DESC   0x2C
 
#define LAS2_DESC   0x30
 
#define LAS_BIT_BIGENDIAN   24
 
#define VME_IOID_SPACE   "IOID"
 
#define VME_MEM_SPACE   "MEM"
 

Variables

struct tpci200_regs __packed
 

Macro Definition Documentation

#define LAS1_DESC   0x2C

Definition at line 106 of file tpci200.h.

#define LAS2_DESC   0x30

Definition at line 107 of file tpci200.h.

#define LAS_BIT_BIGENDIAN   24

Definition at line 110 of file tpci200.h.

#define TPCI200_A_ERROR   0x0100

Definition at line 89 of file tpci200.h.

#define TPCI200_A_INT0   0x0001

Definition at line 94 of file tpci200.h.

#define TPCI200_A_INT1   0x0002

Definition at line 95 of file tpci200.h.

#define TPCI200_A_RESET   0x0001

Definition at line 78 of file tpci200.h.

#define TPCI200_A_TIMEOUT   0x1000

Definition at line 84 of file tpci200.h.

#define TPCI200_B_ERROR   0x0200

Definition at line 90 of file tpci200.h.

#define TPCI200_B_INT0   0x0004

Definition at line 96 of file tpci200.h.

#define TPCI200_B_INT1   0x0008

Definition at line 97 of file tpci200.h.

#define TPCI200_B_RESET   0x0002

Definition at line 79 of file tpci200.h.

#define TPCI200_B_TIMEOUT   0x2000

Definition at line 85 of file tpci200.h.

#define TPCI200_C_ERROR   0x0400

Definition at line 91 of file tpci200.h.

#define TPCI200_C_INT0   0x0010

Definition at line 98 of file tpci200.h.

#define TPCI200_C_INT1   0x0020

Definition at line 99 of file tpci200.h.

#define TPCI200_C_RESET   0x0004

Definition at line 80 of file tpci200.h.

#define TPCI200_C_TIMEOUT   0x4000

Definition at line 86 of file tpci200.h.

#define TPCI200_CFG_MEM_BAR   0

Definition at line 33 of file tpci200.h.

#define TPCI200_CLK32   0x0001

Definition at line 75 of file tpci200.h.

#define TPCI200_D_ERROR   0x0800

Definition at line 92 of file tpci200.h.

#define TPCI200_D_INT0   0x0040

Definition at line 100 of file tpci200.h.

#define TPCI200_D_INT1   0x0080

Definition at line 101 of file tpci200.h.

#define TPCI200_D_RESET   0x0008

Definition at line 81 of file tpci200.h.

#define TPCI200_D_TIMEOUT   0x8000

Definition at line 87 of file tpci200.h.

#define TPCI200_DEVICE_ID   0x30C8

Definition at line 29 of file tpci200.h.

#define TPCI200_ERR_INT_EN   0x0008

Definition at line 72 of file tpci200.h.

#define TPCI200_ID_SPACE_GAP   0x0100

Definition at line 55 of file tpci200.h.

#define TPCI200_ID_SPACE_OFF   0x0080

Definition at line 54 of file tpci200.h.

#define TPCI200_ID_SPACE_SIZE   0x0040

Definition at line 56 of file tpci200.h.

#define TPCI200_IFACE_SIZE   0x100

Definition at line 49 of file tpci200.h.

#define TPCI200_INT0_EDGE   0x0010

Definition at line 70 of file tpci200.h.

#define TPCI200_INT0_EN   0x0040

Definition at line 68 of file tpci200.h.

#define TPCI200_INT1_EDGE   0x0020

Definition at line 71 of file tpci200.h.

#define TPCI200_INT1_EN   0x0080

Definition at line 69 of file tpci200.h.

#define TPCI200_INT_SPACE_GAP   0x0100

Definition at line 58 of file tpci200.h.

#define TPCI200_INT_SPACE_OFF   0x00C0

Definition at line 57 of file tpci200.h.

#define TPCI200_INT_SPACE_SIZE   0x0040

Definition at line 59 of file tpci200.h.

#define TPCI200_IO_ID_INT_SPACES_BAR   3

Definition at line 35 of file tpci200.h.

#define TPCI200_IO_SPACE_GAP   0x0100

Definition at line 52 of file tpci200.h.

#define TPCI200_IO_SPACE_OFF   0x0000

Definition at line 51 of file tpci200.h.

#define TPCI200_IO_SPACE_SIZE   0x0080

Definition at line 53 of file tpci200.h.

#define TPCI200_IOIDINT_SIZE   0x0400

Definition at line 60 of file tpci200.h.

#define TPCI200_IP_INTERFACE_BAR   2

Definition at line 34 of file tpci200.h.

#define TPCI200_MEM16_GAP   0x00800000

Definition at line 64 of file tpci200.h.

#define TPCI200_MEM16_SIZE   0x00800000

Definition at line 65 of file tpci200.h.

#define TPCI200_MEM16_SPACE_BAR   4

Definition at line 36 of file tpci200.h.

#define TPCI200_MEM8_GAP   0x00400000

Definition at line 62 of file tpci200.h.

#define TPCI200_MEM8_SIZE   0x00400000

Definition at line 63 of file tpci200.h.

#define TPCI200_MEM8_SPACE_BAR   5

Definition at line 37 of file tpci200.h.

#define TPCI200_NB_BAR   0x6

Definition at line 26 of file tpci200.h.

#define TPCI200_NB_SLOT   0x4

tpci200.h

driver for the carrier TEWS TPCI-200 Copyright (c) 2009 Nicolas Serafini, EIC2 SA Copyright (c) 2010,2011 Samuel Iglesias Gonsalvez sigle.nosp@m.sia@.nosp@m.cern..nosp@m.ch, CERN Copyright (c) 2012 Samuel Iglesias Gonsalvez sigle.nosp@m.sias.nosp@m.@igal.nosp@m.ia.c.nosp@m.om, Igalia

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

Definition at line 25 of file tpci200.h.

#define TPCI200_RECOVER_EN   0x0002

Definition at line 74 of file tpci200.h.

#define TPCI200_SLOT_INT_MASK   0x00FF

Definition at line 103 of file tpci200.h.

#define TPCI200_SUBDEVICE_ID   0x300A

Definition at line 31 of file tpci200.h.

#define TPCI200_SUBVENDOR_ID   0x1498

Definition at line 30 of file tpci200.h.

#define TPCI200_TIME_INT_EN   0x0004

Definition at line 73 of file tpci200.h.

#define TPCI200_VENDOR_ID   0x1498

Definition at line 28 of file tpci200.h.

#define VME_IOID_SPACE   "IOID"

Definition at line 112 of file tpci200.h.

#define VME_MEM_SPACE   "MEM"

Definition at line 113 of file tpci200.h.

Variable Documentation