/* * Copyright 2008 Haiku. * Distributed under the terms of the MIT License. * * Authors: * Alexander Coers Alexander.Coers@gmx.de * Fredrik Modéen fredrik@modeen.se */ #ifndef DRIVER_H #define DRIVER_H #include #include #include "joystick_driver.h" #define VENDOR_ID_CREATIVE 0x1102 #define DEVICE_ID_CREATIVE_EMU10K1 0x0002 #define SBLIVE_ID 0x7002 /*EMU10000*/ #define AUDIGY_ID 0x7003 /*EMU10K2*/ #define SBLIVE_DELL_ID 0x7004 /* Game port for SB Live!, Dell OEM gameport*/ #define DRIVER_NAME "emuxkigameport" #define AREA_NAME "SB_GAME" #define MAX_CARDS 2 /* NB global variables are valid only while driver is loaded */ static volatile ulong vaddr; /* PCI */ // use pci manager static char pci_name[] = B_PCI_MODULE_NAME; static pci_module_info *pci; // use generic_gameport_module... static char gameport_name [] = "generic/gameport/v2"; static generic_gameport_module *gameport; #define HCFG 0x14 /* Hardware Configuration Register of SB-Live */ #define HCFG_JOYENABLE 0x00000200 /* Mask for enabling Joystick */ struct joystick_dev { void * driver; char name1[64]; }; struct gameport_info { char name[60]; /* used for resources */ pci_info info; joystick_dev joy; }; #endif /* DRIVER_H */