struct pcilst_struct *amcc_devices; // ptr to root list of all amcc devices
-int i_ADDIDATADeviceID[] = { 0x15B8, 0x10E8 };
+static const int i_ADDIDATADeviceID[] = { 0x15B8, 0x10E8 };
/****************************************************************************/
#define COMEDI_SUBD_TTLIO 11 /* Digital Input Output But TTL */
#endif
-static boardtype boardtypes[] = {
+static const boardtype boardtypes[] = {
#ifdef CONFIG_APCI_3120
{"apci3120",
APCI3120_BOARD_VENDOR_ID,
typedef unsigned int DWORD, *PDWORD; /* 32-bit */
typedef unsigned long ULONG_PTR;
-typedef comedi_lrange *PRANGE;
+typedef const comedi_lrange *PCRANGE;
#define LOBYTE(W) (BYTE )((W)&0xFF)
#define HIBYTE(W) (BYTE )(((W)>>8)&0xFF)
#define MAKEWORD(H,L) (USHORT )((L)|( (H)<<8) )
INT i_NbrAoChannel; // num of D/A chans
INT i_AiMaxdata; // resolution of A/D
INT i_AoMaxdata; // resolution of D/A
- PRANGE pr_AiRangelist; // rangelist for A/D
- PRANGE pr_AoRangelist; // rangelist for D/A
+ PCRANGE pr_AiRangelist; // rangelist for A/D
+ PCRANGE pr_AoRangelist; // rangelist for D/A
INT i_NbrDiChannel; // Number of DI channels
INT i_NbrDoChannel; // Number of DO channels
INT i_DoMaxdata; // data to set all chanels high
INT i_NbrTTLChannel; // Number of TTL channels
- PRANGE pr_TTLRangelist; // rangelist for TTL
+ PCRANGE pr_TTLRangelist; // rangelist for TTL
INT i_Dma; // dma present or not
INT i_Timer; // timer subdevice present or not
//MODULE INFO STRUCTURE
-comedi_lrange range_apci1710_ttl = { 4, {
+static const comedi_lrange range_apci1710_ttl = { 4, {
BIP_RANGE(10),
BIP_RANGE(5),
BIP_RANGE(2),
}
};
-comedi_lrange range_apci1710_ssi = { 4, {
+static const comedi_lrange range_apci1710_ssi = { 4, {
BIP_RANGE(10),
BIP_RANGE(5),
BIP_RANGE(2),
}
};
-comedi_lrange range_apci1710_inccpt = { 4, {
+static const comedi_lrange range_apci1710_inccpt = { 4, {
BIP_RANGE(10),
BIP_RANGE(5),
BIP_RANGE(2),
#ifdef __KERNEL__
-comedi_lrange range_apci16xx_ttl = { 12,
+static const comedi_lrange range_apci16xx_ttl = { 12,
{BIP_RANGE(1),
BIP_RANGE(1),
BIP_RANGE(1),
// comedi related defines
//ANALOG INPUT RANGE
-comedi_lrange range_apci3120_ai = { 8, {
+static const comedi_lrange range_apci3120_ai = { 8, {
BIP_RANGE(10),
BIP_RANGE(5),
BIP_RANGE(2),
};
// ANALOG OUTPUT RANGE
-comedi_lrange range_apci3120_ao = { 2, {
+static const comedi_lrange range_apci3120_ao = { 2, {
BIP_RANGE(10),
UNI_RANGE(10)
}
Config_Parameters_Module3, Config_Parameters_Module4;
//ANALOG INPUT RANGE
-comedi_lrange range_apci3200_ai = { 8, {
+static const comedi_lrange range_apci3200_ai = { 8, {
BIP_RANGE(10),
BIP_RANGE(5),
BIP_RANGE(2),
}
};
-comedi_lrange range_apci3300_ai = { 4, {
+static const comedi_lrange range_apci3300_ai = { 4, {
UNI_RANGE(10),
UNI_RANGE(5),
UNI_RANGE(2),
#ifdef __KERNEL__
-comedi_lrange range_apci3XXX_ai = { 8, {BIP_RANGE(10),
+static const comedi_lrange range_apci3XXX_ai = { 8, {BIP_RANGE(10),
BIP_RANGE(5),
BIP_RANGE(2),
BIP_RANGE(1),
UNI_RANGE(1)}
};
-comedi_lrange range_apci3XXX_ttl = { 12, {BIP_RANGE(1),
+static const comedi_lrange range_apci3XXX_ttl = { 12, {BIP_RANGE(1),
BIP_RANGE(1),
BIP_RANGE(1),
BIP_RANGE(1),
BIP_RANGE(1)}
};
-comedi_lrange range_apci3XXX_ao = { 2, {BIP_RANGE(10),
+static const comedi_lrange range_apci3XXX_ao = { 2, {BIP_RANGE(10),
UNI_RANGE(10)}
};
#endif