12 #include <linux/errno.h>
14 #include <linux/kernel.h>
15 #include <linux/module.h>
21 #define DATA_PORT 0x325
22 #define DIR_PORT 0x326
51 static void duramar2150_c2port_c2d_dir(
struct c2port_device *dev,
int dir)
67 static int duramar2150_c2port_c2d_get(
struct c2port_device *dev)
72 static void duramar2150_c2port_c2d_set(
struct c2port_device *dev,
int status)
88 static void duramar2150_c2port_c2ck_set(
struct c2port_device *dev,
int status)
104 static struct c2port_ops duramar2150_c2port_ops = {
108 .access = duramar2150_c2port_access,
109 .c2d_dir = duramar2150_c2port_c2d_dir,
110 .c2d_get = duramar2150_c2port_c2d_get,
111 .c2d_set = duramar2150_c2port_c2d_set,
112 .c2ck_set = duramar2150_c2port_c2ck_set,
121 static int __init duramar2150_c2port_init(
void)
131 &duramar2150_c2port_ops,
NULL);
132 if (!duramar2150_c2port_dev) {
144 static void __exit duramar2150_c2port_exit(
void)
147 duramar2150_c2port_access(duramar2150_c2port_dev, 0);