rpckbd.c (f0eef25339f92f7cd4aeea23d9ae97987a5a1e82) rpckbd.c (d7b5247bbcfba2bc96d4b3dec9086a4f1a31363b)
1/*
2 * $Id: rpckbd.c,v 1.7 2001/09/25 10:12:07 vojtech Exp $
3 *
4 * Copyright (c) 2000-2001 Vojtech Pavlik
5 * Copyright (c) 2002 Russell King
6 */
7
8/*

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

40#include <asm/hardware.h>
41#include <asm/io.h>
42#include <asm/hardware/iomd.h>
43#include <asm/system.h>
44
45MODULE_AUTHOR("Vojtech Pavlik, Russell King");
46MODULE_DESCRIPTION("Acorn RiscPC PS/2 keyboard controller driver");
47MODULE_LICENSE("GPL");
1/*
2 * $Id: rpckbd.c,v 1.7 2001/09/25 10:12:07 vojtech Exp $
3 *
4 * Copyright (c) 2000-2001 Vojtech Pavlik
5 * Copyright (c) 2002 Russell King
6 */
7
8/*

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

40#include <asm/hardware.h>
41#include <asm/io.h>
42#include <asm/hardware/iomd.h>
43#include <asm/system.h>
44
45MODULE_AUTHOR("Vojtech Pavlik, Russell King");
46MODULE_DESCRIPTION("Acorn RiscPC PS/2 keyboard controller driver");
47MODULE_LICENSE("GPL");
48MODULE_ALIAS("platform:kart");
48
49static int rpckbd_write(struct serio *port, unsigned char val)
50{
51 while (!(iomd_readb(IOMD_KCTRL) & (1 << 7)))
52 cpu_relax();
53
54 iomd_writeb(val, IOMD_KARTTX);
55

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

135 return 0;
136}
137
138static struct platform_driver rpckbd_driver = {
139 .probe = rpckbd_probe,
140 .remove = __devexit_p(rpckbd_remove),
141 .driver = {
142 .name = "kart",
49
50static int rpckbd_write(struct serio *port, unsigned char val)
51{
52 while (!(iomd_readb(IOMD_KCTRL) & (1 << 7)))
53 cpu_relax();
54
55 iomd_writeb(val, IOMD_KARTTX);
56

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

136 return 0;
137}
138
139static struct platform_driver rpckbd_driver = {
140 .probe = rpckbd_probe,
141 .remove = __devexit_p(rpckbd_remove),
142 .driver = {
143 .name = "kart",
144 .owner = THIS_MODULE,
143 },
144};
145
146static int __init rpckbd_init(void)
147{
148 return platform_driver_register(&rpckbd_driver);
149}
150
151static void __exit rpckbd_exit(void)
152{
153 platform_driver_unregister(&rpckbd_driver);
154}
155
156module_init(rpckbd_init);
157module_exit(rpckbd_exit);
145 },
146};
147
148static int __init rpckbd_init(void)
149{
150 return platform_driver_register(&rpckbd_driver);
151}
152
153static void __exit rpckbd_exit(void)
154{
155 platform_driver_unregister(&rpckbd_driver);
156}
157
158module_init(rpckbd_init);
159module_exit(rpckbd_exit);