Commit 3a6167a6 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] remove 2.0/2.2 stuff

parent c100aed2
...@@ -19,19 +19,6 @@ ...@@ -19,19 +19,6 @@
#ifndef _SDLADRV_H #ifndef _SDLADRV_H
#define _SDLADRV_H #define _SDLADRV_H
#include <linux/version.h>
#ifndef KERNEL_VERSION
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0)
#define LINUX_2_4
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,0)
#define LINUX_2_1
#else
#define LINUX_2_0
#endif
#define SDLA_MAXIORANGE 4 /* maximum I/O port range */ #define SDLA_MAXIORANGE 4 /* maximum I/O port range */
#define SDLA_WINDOWSIZE 0x2000 /* default dual-port memory window size */ #define SDLA_WINDOWSIZE 0x2000 /* default dual-port memory window size */
...@@ -50,12 +37,7 @@ typedef struct sdlahw ...@@ -50,12 +37,7 @@ typedef struct sdlahw
char S514_cpu_no[1]; /* PCI CPU Number */ char S514_cpu_no[1]; /* PCI CPU Number */
unsigned char S514_slot_no; /* PCI Slot Number */ unsigned char S514_slot_no; /* PCI Slot Number */
char auto_pci_cfg; /* Autodetect PCI Slot */ char auto_pci_cfg; /* Autodetect PCI Slot */
#if defined(LINUX_2_1) || defined(LINUX_2_4)
struct pci_dev *pci_dev; /* PCI device */ struct pci_dev *pci_dev; /* PCI device */
#else
unsigned char pci_bus; /* PCI bus number */
unsigned char pci_dev_func; /* PCI device/function number */
#endif
void * dpmbase; /* dual-port memory base */ void * dpmbase; /* dual-port memory base */
unsigned dpmsize; /* dual-port memory size */ unsigned dpmsize; /* dual-port memory size */
unsigned pclk; /* CPU clock rate, kHz */ unsigned pclk; /* CPU clock rate, kHz */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment