summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-04-03 14:30:58 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-04-03 14:30:58 +0000
commite5828702c0254b092d852aeb42bdb97fd475c5f0 (patch)
tree6bdae00ee6077b247f77784ffe16fbc1ec72d71f /sys/dev/pci/drm
parent48c7f1c089354a87f0f958a998cb07683d9b7f1f (diff)
detypedef drm_pci_id_list_t.
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r--sys/dev/pci/drm/drmP.h11
-rw-r--r--sys/dev/pci/drm/drm_drv.c8
-rw-r--r--sys/dev/pci/drm/i915_drv.c4
-rw-r--r--sys/dev/pci/drm/mach64_drv.c2
-rw-r--r--sys/dev/pci/drm/mga_drv.c4
-rw-r--r--sys/dev/pci/drm/r128_drv.c2
-rw-r--r--sys/dev/pci/drm/radeon_drv.c4
-rw-r--r--sys/dev/pci/drm/savage_drv.c4
-rw-r--r--sys/dev/pci/drm/sis_drv.c2
-rw-r--r--sys/dev/pci/drm/tdfx_drv.c2
10 files changed, 21 insertions, 22 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index 1e3c9cc8b01..da45e9f338d 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -200,12 +200,11 @@ do { \
#define DRM_DEBUG(fmt, arg...) do { } while(/* CONSTCOND */ 0)
#endif
-typedef struct drm_pci_id_list
-{
+struct drm_pcidev {
int vendor;
int device;
long driver_private;
-} drm_pci_id_list_t;
+};
struct drm_file;
struct drm_device;
@@ -473,7 +472,7 @@ struct drm_attach_args {
extern int drm_debug_flag;
/* Device setup support (drm_drv.c) */
-int drm_pciprobe(struct pci_attach_args *, const drm_pci_id_list_t * );
+int drm_pciprobe(struct pci_attach_args *, const struct drm_pcidev * );
struct device *drm_attach_pci(const struct drm_driver_info *,
struct pci_attach_args *, int, struct device *);
dev_type_ioctl(drmioctl);
@@ -485,8 +484,8 @@ struct drm_dmamem *drm_dmamem_alloc(bus_dma_tag_t, bus_size_t, bus_size_t,
int, bus_size_t, int, int);
void drm_dmamem_free(bus_dma_tag_t, struct drm_dmamem *);
-const drm_pci_id_list_t *drm_find_description(int , int ,
- const drm_pci_id_list_t *);
+const struct drm_pcidev *drm_find_description(int , int ,
+ const struct drm_pcidev *);
/* File operations helpers (drm_fops.c) */
struct drm_file *drm_find_file_by_minor(struct drm_device *, int);
diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c
index 28c97ae7aab..0bf9824ff1f 100644
--- a/sys/dev/pci/drm/drm_drv.c
+++ b/sys/dev/pci/drm/drm_drv.c
@@ -103,9 +103,9 @@ drmprint(void *aux, const char *pnp)
}
int
-drm_pciprobe(struct pci_attach_args *pa, const drm_pci_id_list_t *idlist)
+drm_pciprobe(struct pci_attach_args *pa, const struct drm_pcidev *idlist)
{
- const drm_pci_id_list_t *id_entry;
+ const struct drm_pcidev *id_entry;
id_entry = drm_find_description(PCI_VENDOR(pa->pa_id),
PCI_PRODUCT(pa->pa_id), idlist);
@@ -241,8 +241,8 @@ struct cfdriver drm_cd = {
0, "drm", DV_DULL
};
-const drm_pci_id_list_t *
-drm_find_description(int vendor, int device, const drm_pci_id_list_t *idlist)
+const struct drm_pcidev *
+drm_find_description(int vendor, int device, const struct drm_pcidev *idlist)
{
int i = 0;
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c
index 918ee6f0244..a6bf6537e1d 100644
--- a/sys/dev/pci/drm/i915_drv.c
+++ b/sys/dev/pci/drm/i915_drv.c
@@ -40,7 +40,7 @@ void inteldrm_attach(struct device *, struct device *, void *);
int inteldrm_detach(struct device *, int);
int inteldrm_ioctl(struct drm_device *, u_long, caddr_t, struct drm_file *);
-const static drm_pci_id_list_t inteldrm_pciidlist[] = {
+const static struct drm_pcidev inteldrm_pciidlist[] = {
{PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82830M_IGD,
CHIP_I830|CHIP_M},
{PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82845G_IGD,
@@ -125,7 +125,7 @@ inteldrm_attach(struct device *parent, struct device *self, void *aux)
struct drm_i915_private *dev_priv = (struct drm_i915_private *)self;
struct pci_attach_args *pa = aux;
struct vga_pci_bar *bar;
- const drm_pci_id_list_t *id_entry;
+ const struct drm_pcidev *id_entry;
id_entry = drm_find_description(PCI_VENDOR(pa->pa_id),
PCI_PRODUCT(pa->pa_id), inteldrm_pciidlist);
diff --git a/sys/dev/pci/drm/mach64_drv.c b/sys/dev/pci/drm/mach64_drv.c
index 3f3b2c304a4..2a2d59fb4f0 100644
--- a/sys/dev/pci/drm/mach64_drv.c
+++ b/sys/dev/pci/drm/mach64_drv.c
@@ -43,7 +43,7 @@ void machdrm_attach(struct device *, struct device *, void *);
int machdrm_detach(struct device *, int);
int machdrm_ioctl(struct drm_device *, u_long, caddr_t, struct drm_file *);
-const static drm_pci_id_list_t mach64_pciidlist[] = {
+const static struct drm_pcidev mach64_pciidlist[] = {
{PCI_VENDOR_ATI, PCI_PRODUCT_ATI_MACH64_GI},
{PCI_VENDOR_ATI, PCI_PRODUCT_ATI_MACH64_GP},
{PCI_VENDOR_ATI, PCI_PRODUCT_ATI_MACH64_GQ},
diff --git a/sys/dev/pci/drm/mga_drv.c b/sys/dev/pci/drm/mga_drv.c
index 5c6ffba8533..87a7559ecc9 100644
--- a/sys/dev/pci/drm/mga_drv.c
+++ b/sys/dev/pci/drm/mga_drv.c
@@ -44,7 +44,7 @@ int mgadrm_ioctl(struct drm_device *, u_long, caddr_t, struct drm_file *);
#define MGA_DEFAULT_USEC_TIMEOUT 10000
-const static drm_pci_id_list_t mgadrm_pciidlist[] = {
+const static struct drm_pcidev mgadrm_pciidlist[] = {
{PCI_VENDOR_MATROX, PCI_PRODUCT_MATROX_MILL_II_G200_PCI,
MGA_CARD_TYPE_G200},
{PCI_VENDOR_MATROX, PCI_PRODUCT_MATROX_MILL_II_G200_AGP,
@@ -138,7 +138,7 @@ mgadrm_attach(struct device *parent, struct device *self, void *aux)
drm_mga_private_t *dev_priv = (drm_mga_private_t *)self;
struct pci_attach_args *pa = aux;
struct vga_pci_bar *bar;
- const drm_pci_id_list_t *id_entry;
+ const struct drm_pcidev *id_entry;
int is_agp;
dev_priv->usec_timeout = MGA_DEFAULT_USEC_TIMEOUT;
diff --git a/sys/dev/pci/drm/r128_drv.c b/sys/dev/pci/drm/r128_drv.c
index 653109085fb..2b5cc90c973 100644
--- a/sys/dev/pci/drm/r128_drv.c
+++ b/sys/dev/pci/drm/r128_drv.c
@@ -41,7 +41,7 @@ void ragedrm_attach(struct device *, struct device *, void *);
int ragedrm_detach(struct device *, int);
int ragedrm_ioctl(struct drm_device *, u_long, caddr_t, struct drm_file *);
-const static drm_pci_id_list_t ragedrm_pciidlist[] = {
+const static struct drm_pcidev ragedrm_pciidlist[] = {
{PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RAGE128_LE},
{PCI_VENDOR_ATI, PCI_PRODUCT_ATI_MOBILITY_M3},
{PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RAGE128_MF},
diff --git a/sys/dev/pci/drm/radeon_drv.c b/sys/dev/pci/drm/radeon_drv.c
index 1677669fca5..3623862e8fe 100644
--- a/sys/dev/pci/drm/radeon_drv.c
+++ b/sys/dev/pci/drm/radeon_drv.c
@@ -41,7 +41,7 @@ int radeondrm_ioctl(struct drm_device *, u_long, caddr_t, struct drm_file *);
int radeon_no_wb;
-const static drm_pci_id_list_t radeondrm_pciidlist[] = {
+const static struct drm_pcidev radeondrm_pciidlist[] = {
{PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_M241P,
CHIP_RV380|RADEON_IS_MOBILITY},
{PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_X300M24,
@@ -521,7 +521,7 @@ radeondrm_attach(struct device *parent, struct device *self, void *aux)
drm_radeon_private_t *dev_priv = (drm_radeon_private_t *)self;
struct pci_attach_args *pa = aux;
struct vga_pci_bar *bar;
- const drm_pci_id_list_t *id_entry;
+ const struct drm_pcidev *id_entry;
int is_agp;
id_entry = drm_find_description(PCI_VENDOR(pa->pa_id),
diff --git a/sys/dev/pci/drm/savage_drv.c b/sys/dev/pci/drm/savage_drv.c
index 33d1b9710fc..3ecb2fe5420 100644
--- a/sys/dev/pci/drm/savage_drv.c
+++ b/sys/dev/pci/drm/savage_drv.c
@@ -36,7 +36,7 @@ void savagedrm_attach(struct device *, struct device *, void *);
int savagedrm_detach(struct device *, int);
int savagedrm_ioctl(struct drm_device *, u_long, caddr_t, struct drm_file *);
-const static drm_pci_id_list_t savagedrm_pciidlist[] = {
+const static struct drm_pcidev savagedrm_pciidlist[] = {
{PCI_VENDOR_S3, PCI_PRODUCT_S3_SAVAGE3D, S3_SAVAGE3D},
{PCI_VENDOR_S3, PCI_PRODUCT_S3_SAVAGE3D_M, S3_SAVAGE3D},
{PCI_VENDOR_S3, PCI_PRODUCT_S3_SAVAGE4, S3_SAVAGE4},
@@ -93,7 +93,7 @@ savagedrm_attach(struct device *parent, struct device *self, void *aux)
drm_savage_private_t *dev_priv = (drm_savage_private_t *)self;
struct pci_attach_args *pa = aux;
struct vga_pci_bar *bar;
- const drm_pci_id_list_t *id_entry;
+ const struct drm_pcidev *id_entry;
unsigned long mmio_base;
int is_agp;
diff --git a/sys/dev/pci/drm/sis_drv.c b/sys/dev/pci/drm/sis_drv.c
index 18cfef26b68..7c5f6ea8229 100644
--- a/sys/dev/pci/drm/sis_drv.c
+++ b/sys/dev/pci/drm/sis_drv.c
@@ -35,7 +35,7 @@ void sisdrm_attach(struct device *, struct device *, void *);
int sisdrm_detach(struct device *, int);
int sisdrm_ioctl(struct drm_device *, u_long, caddr_t, struct drm_file *);
-const static drm_pci_id_list_t sis_pciidlist[] = {
+const static struct drm_pcidev sis_pciidlist[] = {
{PCI_VENDOR_SIS, PCI_PRODUCT_SIS_300},
{PCI_VENDOR_SIS, PCI_PRODUCT_SIS_5300},
{PCI_VENDOR_SIS, PCI_PRODUCT_SIS_6300},
diff --git a/sys/dev/pci/drm/tdfx_drv.c b/sys/dev/pci/drm/tdfx_drv.c
index 6a2c4340838..f1153d879ae 100644
--- a/sys/dev/pci/drm/tdfx_drv.c
+++ b/sys/dev/pci/drm/tdfx_drv.c
@@ -43,7 +43,7 @@ struct tdfxdrm_softc {
int tdfxdrm_probe(struct device *, void *, void *);
void tdfxdrm_attach(struct device *, struct device *, void *);
-const static drm_pci_id_list_t tdfxdrm_pciidlist[] = {
+const static struct drm_pcidev tdfxdrm_pciidlist[] = {
{PCI_VENDOR_3DFX, PCI_PRODUCT_3DFX_BANSHEE},
{PCI_VENDOR_3DFX, PCI_PRODUCT_3DFX_VOODOO32000},
{PCI_VENDOR_3DFX, PCI_PRODUCT_3DFX_VOODOO3},