gameport 30 include/linux/gameport.h void (*trigger)(struct gameport *); gameport 31 include/linux/gameport.h unsigned char (*read)(struct gameport *); gameport 32 include/linux/gameport.h int (*cooked_read)(struct gameport *, int *, int *); gameport 33 include/linux/gameport.h int (*calibrate)(struct gameport *, int *, int *); gameport 34 include/linux/gameport.h int (*open)(struct gameport *, int); gameport 35 include/linux/gameport.h void (*close)(struct gameport *); gameport 41 include/linux/gameport.h void (*poll_handler)(struct gameport *); gameport 43 include/linux/gameport.h struct gameport *parent, *child; gameport 52 include/linux/gameport.h #define to_gameport_port(d) container_of(d, struct gameport, dev) gameport 57 include/linux/gameport.h int (*connect)(struct gameport *, struct gameport_driver *drv); gameport 58 include/linux/gameport.h int (*reconnect)(struct gameport *); gameport 59 include/linux/gameport.h void (*disconnect)(struct gameport *); gameport 67 include/linux/gameport.h int gameport_open(struct gameport *gameport, struct gameport_driver *drv, int mode); gameport 68 include/linux/gameport.h void gameport_close(struct gameport *gameport); gameport 72 include/linux/gameport.h void __gameport_register_port(struct gameport *gameport, struct module *owner); gameport 74 include/linux/gameport.h #define gameport_register_port(gameport) \ gameport 75 include/linux/gameport.h __gameport_register_port(gameport, THIS_MODULE) gameport 77 include/linux/gameport.h void gameport_unregister_port(struct gameport *gameport); gameport 80 include/linux/gameport.h void gameport_set_phys(struct gameport *gameport, const char *fmt, ...); gameport 84 include/linux/gameport.h static inline void gameport_register_port(struct gameport *gameport) gameport 89 include/linux/gameport.h static inline void gameport_unregister_port(struct gameport *gameport) gameport 95 include/linux/gameport.h void gameport_set_phys(struct gameport *gameport, const char *fmt, ...) gameport 102 include/linux/gameport.h static inline struct gameport *gameport_allocate_port(void) gameport 104 include/linux/gameport.h struct gameport *gameport = kzalloc(sizeof(struct gameport), GFP_KERNEL); gameport 106 include/linux/gameport.h return gameport; gameport 109 include/linux/gameport.h static inline void gameport_free_port(struct gameport *gameport) gameport 111 include/linux/gameport.h kfree(gameport); gameport 114 include/linux/gameport.h static inline void gameport_set_name(struct gameport *gameport, const char *name) gameport 116 include/linux/gameport.h strlcpy(gameport->name, name, sizeof(gameport->name)); gameport 123 include/linux/gameport.h static inline void *gameport_get_drvdata(struct gameport *gameport) gameport 125 include/linux/gameport.h return dev_get_drvdata(&gameport->dev); gameport 128 include/linux/gameport.h static inline void gameport_set_drvdata(struct gameport *gameport, void *data) gameport 130 include/linux/gameport.h dev_set_drvdata(&gameport->dev, data); gameport 136 include/linux/gameport.h static inline int gameport_pin_driver(struct gameport *gameport) gameport 138 include/linux/gameport.h return mutex_lock_interruptible(&gameport->drv_mutex); gameport 141 include/linux/gameport.h static inline void gameport_unpin_driver(struct gameport *gameport) gameport 143 include/linux/gameport.h mutex_unlock(&gameport->drv_mutex); gameport 169 include/linux/gameport.h static inline void gameport_trigger(struct gameport *gameport) gameport 171 include/linux/gameport.h if (gameport->trigger) gameport 172 include/linux/gameport.h gameport->trigger(gameport); gameport 174 include/linux/gameport.h outb(0xff, gameport->io); gameport 177 include/linux/gameport.h static inline unsigned char gameport_read(struct gameport *gameport) gameport 179 include/linux/gameport.h if (gameport->read) gameport 180 include/linux/gameport.h return gameport->read(gameport); gameport 182 include/linux/gameport.h return inb(gameport->io); gameport 185 include/linux/gameport.h static inline int gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) gameport 187 include/linux/gameport.h if (gameport->cooked_read) gameport 188 include/linux/gameport.h return gameport->cooked_read(gameport, axes, buttons); gameport 193 include/linux/gameport.h static inline int gameport_calibrate(struct gameport *gameport, int *axes, int *max) gameport 195 include/linux/gameport.h if (gameport->calibrate) gameport 196 include/linux/gameport.h return gameport->calibrate(gameport, axes, max); gameport 201 include/linux/gameport.h static inline int gameport_time(struct gameport *gameport, int time) gameport 203 include/linux/gameport.h return (time * gameport->speed) / 1000; gameport 206 include/linux/gameport.h static inline void gameport_set_poll_handler(struct gameport *gameport, void (*handler)(struct gameport *)) gameport 208 include/linux/gameport.h gameport->poll_handler = handler; gameport 211 include/linux/gameport.h static inline void gameport_set_poll_interval(struct gameport *gameport, unsigned int msecs) gameport 213 include/linux/gameport.h gameport->poll_interval = msecs; gameport 216 include/linux/gameport.h void gameport_start_polling(struct gameport *gameport); gameport 217 include/linux/gameport.h void gameport_stop_polling(struct gameport *gameport);