gameport.c (03351ff4d897098a590cb247b6eebc470b8ecb5a) gameport.c (334955ef964bee9d3b1e20966847eee28cfd05f6)
1/*
2 * Generic gameport layer
3 *
4 * Copyright (c) 1999-2002 Vojtech Pavlik
5 * Copyright (c) 2005 Dmitry Torokhov
6 */
7
8/*

--- 33 unchanged lines hidden (view full) ---

42
43static void gameport_add_port(struct gameport *gameport);
44static void gameport_attach_driver(struct gameport_driver *drv);
45static void gameport_reconnect_port(struct gameport *gameport);
46static void gameport_disconnect_port(struct gameport *gameport);
47
48#if defined(__i386__)
49
1/*
2 * Generic gameport layer
3 *
4 * Copyright (c) 1999-2002 Vojtech Pavlik
5 * Copyright (c) 2005 Dmitry Torokhov
6 */
7
8/*

--- 33 unchanged lines hidden (view full) ---

42
43static void gameport_add_port(struct gameport *gameport);
44static void gameport_attach_driver(struct gameport_driver *drv);
45static void gameport_reconnect_port(struct gameport *gameport);
46static void gameport_disconnect_port(struct gameport *gameport);
47
48#if defined(__i386__)
49
50#include <asm/i8253.h>
50#include <linux/i8253.h>
51
52#define DELTA(x,y) ((y)-(x)+((y)<(x)?1193182/HZ:0))
53#define GET_TIME(x) do { x = get_time_pit(); } while (0)
54
55static unsigned int get_time_pit(void)
56{
57 unsigned long flags;
58 unsigned int count;

--- 761 unchanged lines hidden ---
51
52#define DELTA(x,y) ((y)-(x)+((y)<(x)?1193182/HZ:0))
53#define GET_TIME(x) do { x = get_time_pit(); } while (0)
54
55static unsigned int get_time_pit(void)
56{
57 unsigned long flags;
58 unsigned int count;

--- 761 unchanged lines hidden ---