| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 1 | /* DVB USB compliant Linux driver for the | 
|  | 2 | *  - TwinhanDTV Alpha/MagicBoxII USB2.0 DVB-T receiver | 
|  | 3 | *  - DigitalNow TinyUSB2 DVB-t receiver | 
|  | 4 | * | 
|  | 5 | * Copyright (C) 2004-5 Patrick Boettcher (patrick.boettcher@desy.de) | 
|  | 6 | * | 
|  | 7 | * Thanks to Twinhan who kindly provided hardware and information. | 
|  | 8 | * | 
|  | 9 | *	This program is free software; you can redistribute it and/or modify it | 
|  | 10 | *	under the terms of the GNU General Public License as published by the Free | 
|  | 11 | *	Software Foundation, version 2. | 
|  | 12 | * | 
|  | 13 | * see Documentation/dvb/README.dvb-usb for more information | 
|  | 14 | */ | 
|  | 15 | #include "vp7045.h" | 
|  | 16 |  | 
|  | 17 | /* debug */ | 
| Adrian Bunk | 53133af | 2007-11-05 14:07:06 -0300 | [diff] [blame] | 18 | static int dvb_usb_vp7045_debug; | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 19 | module_param_named(debug,dvb_usb_vp7045_debug, int, 0644); | 
|  | 20 | MODULE_PARM_DESC(debug, "set debugging level (1=info,xfer=2,rc=4 (or-able))." DVB_USB_DEBUG_STATUS); | 
| Janne Grunau | 78e9200 | 2008-04-09 19:13:13 -0300 | [diff] [blame] | 21 |  | 
|  | 22 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | 
|  | 23 |  | 
| Adrian Bunk | 53133af | 2007-11-05 14:07:06 -0300 | [diff] [blame] | 24 | #define deb_info(args...) dprintk(dvb_usb_vp7045_debug,0x01,args) | 
|  | 25 | #define deb_xfer(args...) dprintk(dvb_usb_vp7045_debug,0x02,args) | 
|  | 26 | #define deb_rc(args...)   dprintk(dvb_usb_vp7045_debug,0x04,args) | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 27 |  | 
|  | 28 | int vp7045_usb_op(struct dvb_usb_device *d, u8 cmd, u8 *out, int outlen, u8 *in, int inlen, int msec) | 
|  | 29 | { | 
|  | 30 | int ret = 0; | 
|  | 31 | u8 inbuf[12] = { 0 }, outbuf[20] = { 0 }; | 
|  | 32 |  | 
|  | 33 | outbuf[0] = cmd; | 
|  | 34 |  | 
|  | 35 | if (outlen > 19) | 
|  | 36 | outlen = 19; | 
|  | 37 |  | 
|  | 38 | if (inlen > 11) | 
|  | 39 | inlen = 11; | 
|  | 40 |  | 
|  | 41 | if (out != NULL && outlen > 0) | 
|  | 42 | memcpy(&outbuf[1], out, outlen); | 
|  | 43 |  | 
|  | 44 | deb_xfer("out buffer: "); | 
|  | 45 | debug_dump(outbuf,outlen+1,deb_xfer); | 
|  | 46 |  | 
| Ingo Molnar | 3593cab | 2006-02-07 06:49:14 -0200 | [diff] [blame] | 47 | if ((ret = mutex_lock_interruptible(&d->usb_mutex))) | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 48 | return ret; | 
|  | 49 |  | 
|  | 50 | if (usb_control_msg(d->udev, | 
|  | 51 | usb_sndctrlpipe(d->udev,0), | 
|  | 52 | TH_COMMAND_OUT, USB_TYPE_VENDOR | USB_DIR_OUT, 0, 0, | 
| Patrick Boettcher | 63b5c1c | 2005-07-07 17:58:30 -0700 | [diff] [blame] | 53 | outbuf, 20, 2000) != 20) { | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 54 | err("USB control message 'out' went wrong."); | 
|  | 55 | ret = -EIO; | 
|  | 56 | goto unlock; | 
|  | 57 | } | 
|  | 58 |  | 
|  | 59 | msleep(msec); | 
|  | 60 |  | 
|  | 61 | if (usb_control_msg(d->udev, | 
|  | 62 | usb_rcvctrlpipe(d->udev,0), | 
|  | 63 | TH_COMMAND_IN, USB_TYPE_VENDOR | USB_DIR_IN, 0, 0, | 
| Patrick Boettcher | 63b5c1c | 2005-07-07 17:58:30 -0700 | [diff] [blame] | 64 | inbuf, 12, 2000) != 12) { | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 65 | err("USB control message 'in' went wrong."); | 
|  | 66 | ret = -EIO; | 
|  | 67 | goto unlock; | 
|  | 68 | } | 
|  | 69 |  | 
|  | 70 | deb_xfer("in buffer: "); | 
|  | 71 | debug_dump(inbuf,12,deb_xfer); | 
|  | 72 |  | 
|  | 73 | if (in != NULL && inlen > 0) | 
|  | 74 | memcpy(in,&inbuf[1],inlen); | 
|  | 75 |  | 
|  | 76 | unlock: | 
| Ingo Molnar | 3593cab | 2006-02-07 06:49:14 -0200 | [diff] [blame] | 77 | mutex_unlock(&d->usb_mutex); | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 78 |  | 
|  | 79 | return ret; | 
|  | 80 | } | 
|  | 81 |  | 
|  | 82 | u8 vp7045_read_reg(struct dvb_usb_device *d, u8 reg) | 
|  | 83 | { | 
|  | 84 | u8 obuf[2] = { 0 },v; | 
|  | 85 | obuf[1] = reg; | 
|  | 86 |  | 
|  | 87 | vp7045_usb_op(d,TUNER_REG_READ,obuf,2,&v,1,30); | 
|  | 88 |  | 
|  | 89 | return v; | 
|  | 90 | } | 
|  | 91 |  | 
|  | 92 | static int vp7045_power_ctrl(struct dvb_usb_device *d, int onoff) | 
|  | 93 | { | 
|  | 94 | u8 v = onoff; | 
|  | 95 | return vp7045_usb_op(d,SET_TUNER_POWER,&v,1,NULL,0,150); | 
|  | 96 | } | 
|  | 97 |  | 
|  | 98 | /* remote control stuff */ | 
|  | 99 |  | 
|  | 100 | /* The keymapping struct. Somehow this should be loaded to the driver, but | 
|  | 101 | * currently it is hardcoded. */ | 
|  | 102 | static struct dvb_usb_rc_key vp7045_rc_keys[] = { | 
| Patrick Boettcher | 2d188c6 | 2005-07-07 17:58:21 -0700 | [diff] [blame] | 103 | { 0x00, 0x16, KEY_POWER }, | 
|  | 104 | { 0x00, 0x10, KEY_MUTE }, | 
|  | 105 | { 0x00, 0x03, KEY_1 }, | 
|  | 106 | { 0x00, 0x01, KEY_2 }, | 
|  | 107 | { 0x00, 0x06, KEY_3 }, | 
|  | 108 | { 0x00, 0x09, KEY_4 }, | 
|  | 109 | { 0x00, 0x1d, KEY_5 }, | 
|  | 110 | { 0x00, 0x1f, KEY_6 }, | 
|  | 111 | { 0x00, 0x0d, KEY_7 }, | 
|  | 112 | { 0x00, 0x19, KEY_8 }, | 
|  | 113 | { 0x00, 0x1b, KEY_9 }, | 
|  | 114 | { 0x00, 0x15, KEY_0 }, | 
|  | 115 | { 0x00, 0x05, KEY_CHANNELUP }, | 
|  | 116 | { 0x00, 0x02, KEY_CHANNELDOWN }, | 
|  | 117 | { 0x00, 0x1e, KEY_VOLUMEUP }, | 
|  | 118 | { 0x00, 0x0a, KEY_VOLUMEDOWN }, | 
|  | 119 | { 0x00, 0x11, KEY_RECORD }, | 
|  | 120 | { 0x00, 0x17, KEY_FAVORITES }, /* Heart symbol - Channel list. */ | 
|  | 121 | { 0x00, 0x14, KEY_PLAY }, | 
|  | 122 | { 0x00, 0x1a, KEY_STOP }, | 
|  | 123 | { 0x00, 0x40, KEY_REWIND }, | 
|  | 124 | { 0x00, 0x12, KEY_FASTFORWARD }, | 
|  | 125 | { 0x00, 0x0e, KEY_PREVIOUS }, /* Recall - Previous channel. */ | 
|  | 126 | { 0x00, 0x4c, KEY_PAUSE }, | 
|  | 127 | { 0x00, 0x4d, KEY_SCREEN }, /* Full screen mode. */ | 
|  | 128 | { 0x00, 0x54, KEY_AUDIO }, /* MTS - Switch to secondary audio. */ | 
| Michael Paxton | 04f3e5e | 2005-07-07 17:58:24 -0700 | [diff] [blame] | 129 | { 0x00, 0x0c, KEY_CANCEL }, /* Cancel */ | 
| Patrick Boettcher | 2d188c6 | 2005-07-07 17:58:21 -0700 | [diff] [blame] | 130 | { 0x00, 0x1c, KEY_EPG }, /* EPG */ | 
| Michael Paxton | 04f3e5e | 2005-07-07 17:58:24 -0700 | [diff] [blame] | 131 | { 0x00, 0x00, KEY_TAB }, /* Tab */ | 
| Patrick Boettcher | 2d188c6 | 2005-07-07 17:58:21 -0700 | [diff] [blame] | 132 | { 0x00, 0x48, KEY_INFO }, /* Preview */ | 
|  | 133 | { 0x00, 0x04, KEY_LIST }, /* RecordList */ | 
| Luke Deller | 3cc2e4c | 2006-10-17 18:28:10 -0300 | [diff] [blame] | 134 | { 0x00, 0x0f, KEY_TEXT }, /* Teletext */ | 
|  | 135 | { 0x00, 0x41, KEY_PREVIOUSSONG }, | 
|  | 136 | { 0x00, 0x42, KEY_NEXTSONG }, | 
|  | 137 | { 0x00, 0x4b, KEY_UP }, | 
|  | 138 | { 0x00, 0x51, KEY_DOWN }, | 
|  | 139 | { 0x00, 0x4e, KEY_LEFT }, | 
|  | 140 | { 0x00, 0x52, KEY_RIGHT }, | 
|  | 141 | { 0x00, 0x4f, KEY_ENTER }, | 
|  | 142 | { 0x00, 0x13, KEY_CANCEL }, | 
|  | 143 | { 0x00, 0x4a, KEY_CLEAR }, | 
|  | 144 | { 0x00, 0x54, KEY_PRINT }, /* Capture */ | 
|  | 145 | { 0x00, 0x43, KEY_SUBTITLE }, /* Subtitle/CC */ | 
|  | 146 | { 0x00, 0x08, KEY_VIDEO }, /* A/V */ | 
|  | 147 | { 0x00, 0x07, KEY_SLEEP }, /* Hibernate */ | 
|  | 148 | { 0x00, 0x45, KEY_ZOOM }, /* Zoom+ */ | 
|  | 149 | { 0x00, 0x18, KEY_RED}, | 
|  | 150 | { 0x00, 0x53, KEY_GREEN}, | 
|  | 151 | { 0x00, 0x5e, KEY_YELLOW}, | 
|  | 152 | { 0x00, 0x5f, KEY_BLUE} | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 153 | }; | 
|  | 154 |  | 
| Patrick Boettcher | 8df3d46 | 2005-07-12 13:58:38 -0700 | [diff] [blame] | 155 | static int vp7045_rc_query(struct dvb_usb_device *d, u32 *event, int *state) | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 156 | { | 
|  | 157 | u8 key; | 
|  | 158 | int i; | 
|  | 159 | vp7045_usb_op(d,RC_VAL_READ,NULL,0,&key,1,20); | 
|  | 160 |  | 
|  | 161 | deb_rc("remote query key: %x %d\n",key,key); | 
|  | 162 |  | 
|  | 163 | if (key == 0x44) { | 
|  | 164 | *state = REMOTE_NO_KEY_PRESSED; | 
|  | 165 | return 0; | 
|  | 166 | } | 
|  | 167 |  | 
| Andi Drebes | 667c7bc | 2007-07-30 11:49:51 -0300 | [diff] [blame] | 168 | for (i = 0; i < ARRAY_SIZE(vp7045_rc_keys); i++) | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 169 | if (vp7045_rc_keys[i].data == key) { | 
|  | 170 | *state = REMOTE_KEY_PRESSED; | 
| Patrick Boettcher | 8df3d46 | 2005-07-12 13:58:38 -0700 | [diff] [blame] | 171 | *event = vp7045_rc_keys[i].event; | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 172 | break; | 
|  | 173 | } | 
|  | 174 | return 0; | 
|  | 175 | } | 
|  | 176 |  | 
|  | 177 | static int vp7045_read_eeprom(struct dvb_usb_device *d,u8 *buf, int len, int offset) | 
|  | 178 | { | 
|  | 179 | int i = 0; | 
|  | 180 | u8 v,br[2]; | 
|  | 181 | for (i=0; i < len; i++) { | 
|  | 182 | v = offset + i; | 
|  | 183 | vp7045_usb_op(d,GET_EE_VALUE,&v,1,br,2,5); | 
|  | 184 | buf[i] = br[1]; | 
|  | 185 | } | 
|  | 186 | deb_info("VP7045 EEPROM read (offs: %d, len: %d) : ",offset, i); | 
|  | 187 | debug_dump(buf,i,deb_info); | 
|  | 188 | return 0; | 
|  | 189 | } | 
|  | 190 |  | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 191 | static int vp7045_read_mac_addr(struct dvb_usb_device *d,u8 mac[6]) | 
|  | 192 | { | 
|  | 193 | return vp7045_read_eeprom(d,mac, 6, MAC_0_ADDR); | 
|  | 194 | } | 
|  | 195 |  | 
| Patrick Boettcher | 4d43e13 | 2006-09-30 06:53:48 -0300 | [diff] [blame] | 196 | static int vp7045_frontend_attach(struct dvb_usb_adapter *adap) | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 197 | { | 
|  | 198 | u8 buf[255] = { 0 }; | 
|  | 199 |  | 
| Patrick Boettcher | 4d43e13 | 2006-09-30 06:53:48 -0300 | [diff] [blame] | 200 | vp7045_usb_op(adap->dev,VENDOR_STRING_READ,NULL,0,buf,20,0); | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 201 | buf[10] = '\0'; | 
|  | 202 | deb_info("firmware says: %s ",buf); | 
|  | 203 |  | 
| Patrick Boettcher | 4d43e13 | 2006-09-30 06:53:48 -0300 | [diff] [blame] | 204 | vp7045_usb_op(adap->dev,PRODUCT_STRING_READ,NULL,0,buf,20,0); | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 205 | buf[10] = '\0'; | 
|  | 206 | deb_info("%s ",buf); | 
|  | 207 |  | 
| Patrick Boettcher | 4d43e13 | 2006-09-30 06:53:48 -0300 | [diff] [blame] | 208 | vp7045_usb_op(adap->dev,FW_VERSION_READ,NULL,0,buf,20,0); | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 209 | buf[10] = '\0'; | 
|  | 210 | deb_info("v%s\n",buf); | 
|  | 211 |  | 
|  | 212 | /*	Dump the EEPROM */ | 
|  | 213 | /*	vp7045_read_eeprom(d,buf, 255, FX2_ID_ADDR); */ | 
|  | 214 |  | 
| Patrick Boettcher | 4d43e13 | 2006-09-30 06:53:48 -0300 | [diff] [blame] | 215 | adap->fe = vp7045_fe_attach(adap->dev); | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 216 |  | 
|  | 217 | return 0; | 
|  | 218 | } | 
|  | 219 |  | 
| Patrick Boettcher | 4d43e13 | 2006-09-30 06:53:48 -0300 | [diff] [blame] | 220 | static struct dvb_usb_device_properties vp7045_properties; | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 221 |  | 
|  | 222 | static int vp7045_usb_probe(struct usb_interface *intf, | 
|  | 223 | const struct usb_device_id *id) | 
|  | 224 | { | 
| Janne Grunau | 78e9200 | 2008-04-09 19:13:13 -0300 | [diff] [blame] | 225 | return dvb_usb_device_init(intf, &vp7045_properties, | 
|  | 226 | THIS_MODULE, NULL, adapter_nr); | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 227 | } | 
|  | 228 |  | 
|  | 229 | static struct usb_device_id vp7045_usb_table [] = { | 
|  | 230 | { USB_DEVICE(USB_VID_VISIONPLUS, USB_PID_TWINHAN_VP7045_COLD) }, | 
|  | 231 | { USB_DEVICE(USB_VID_VISIONPLUS, USB_PID_TWINHAN_VP7045_WARM) }, | 
|  | 232 | { USB_DEVICE(USB_VID_VISIONPLUS, USB_PID_DNTV_TINYUSB2_COLD) }, | 
|  | 233 | { USB_DEVICE(USB_VID_VISIONPLUS, USB_PID_DNTV_TINYUSB2_WARM) }, | 
|  | 234 | { 0 }, | 
|  | 235 | }; | 
|  | 236 | MODULE_DEVICE_TABLE(usb, vp7045_usb_table); | 
|  | 237 |  | 
| Patrick Boettcher | 4d43e13 | 2006-09-30 06:53:48 -0300 | [diff] [blame] | 238 | static struct dvb_usb_device_properties vp7045_properties = { | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 239 | .usb_ctrl = CYPRESS_FX2, | 
|  | 240 | .firmware = "dvb-usb-vp7045-01.fw", | 
|  | 241 |  | 
| Patrick Boettcher | 4d43e13 | 2006-09-30 06:53:48 -0300 | [diff] [blame] | 242 | .num_adapters = 1, | 
|  | 243 | .adapter = { | 
|  | 244 | { | 
| Patrick Boettcher | 01451e7 | 2006-10-13 11:34:46 -0300 | [diff] [blame] | 245 | .frontend_attach  = vp7045_frontend_attach, | 
|  | 246 | /* parameter for the MPEG2-data transfer */ | 
| Patrick Boettcher | 4d43e13 | 2006-09-30 06:53:48 -0300 | [diff] [blame] | 247 | .stream = { | 
|  | 248 | .type = USB_BULK, | 
| Patrick Boettcher | 01451e7 | 2006-10-13 11:34:46 -0300 | [diff] [blame] | 249 | .count = 7, | 
|  | 250 | .endpoint = 0x02, | 
|  | 251 | .u = { | 
|  | 252 | .bulk = { | 
|  | 253 | .buffersize = 4096, | 
|  | 254 | } | 
|  | 255 | } | 
|  | 256 | }, | 
| Patrick Boettcher | 4d43e13 | 2006-09-30 06:53:48 -0300 | [diff] [blame] | 257 | } | 
|  | 258 | }, | 
|  | 259 | .power_ctrl       = vp7045_power_ctrl, | 
|  | 260 | .read_mac_address = vp7045_read_mac_addr, | 
|  | 261 |  | 
|  | 262 | .rc_interval      = 400, | 
|  | 263 | .rc_key_map       = vp7045_rc_keys, | 
|  | 264 | .rc_key_map_size  = ARRAY_SIZE(vp7045_rc_keys), | 
|  | 265 | .rc_query         = vp7045_rc_query, | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 266 |  | 
|  | 267 | .num_device_descs = 2, | 
|  | 268 | .devices = { | 
|  | 269 | { .name = "Twinhan USB2.0 DVB-T receiver (TwinhanDTV Alpha/MagicBox II)", | 
|  | 270 | .cold_ids = { &vp7045_usb_table[0], NULL }, | 
|  | 271 | .warm_ids = { &vp7045_usb_table[1], NULL }, | 
|  | 272 | }, | 
|  | 273 | { .name = "DigitalNow TinyUSB 2 DVB-t Receiver", | 
|  | 274 | .cold_ids = { &vp7045_usb_table[2], NULL }, | 
|  | 275 | .warm_ids = { &vp7045_usb_table[3], NULL }, | 
|  | 276 | }, | 
| Al Viro | dad08df | 2006-02-01 06:02:50 -0500 | [diff] [blame] | 277 | { NULL }, | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 278 | } | 
|  | 279 | }; | 
|  | 280 |  | 
|  | 281 | /* usb specific object needed to register this driver with the usb subsystem */ | 
|  | 282 | static struct usb_driver vp7045_usb_driver = { | 
| Patrick Boettcher | 63b5c1c | 2005-07-07 17:58:30 -0700 | [diff] [blame] | 283 | .name		= "dvb_usb_vp7045", | 
| Patrick Boettcher | 3beab78 | 2005-09-09 13:02:50 -0700 | [diff] [blame] | 284 | .probe		= vp7045_usb_probe, | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 285 | .disconnect = dvb_usb_device_exit, | 
| Patrick Boettcher | 3beab78 | 2005-09-09 13:02:50 -0700 | [diff] [blame] | 286 | .id_table	= vp7045_usb_table, | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 287 | }; | 
|  | 288 |  | 
|  | 289 | /* module stuff */ | 
|  | 290 | static int __init vp7045_usb_module_init(void) | 
|  | 291 | { | 
|  | 292 | int result; | 
|  | 293 | if ((result = usb_register(&vp7045_usb_driver))) { | 
|  | 294 | err("usb_register failed. (%d)",result); | 
|  | 295 | return result; | 
|  | 296 | } | 
|  | 297 |  | 
|  | 298 | return 0; | 
|  | 299 | } | 
|  | 300 |  | 
|  | 301 | static void __exit vp7045_usb_module_exit(void) | 
|  | 302 | { | 
|  | 303 | /* deregister this driver from the USB subsystem */ | 
|  | 304 | usb_deregister(&vp7045_usb_driver); | 
|  | 305 | } | 
|  | 306 |  | 
|  | 307 | module_init(vp7045_usb_module_init); | 
|  | 308 | module_exit(vp7045_usb_module_exit); | 
|  | 309 |  | 
|  | 310 | MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); | 
|  | 311 | MODULE_DESCRIPTION("Driver for Twinhan MagicBox/Alpha and DNTV tinyUSB2 DVB-T USB2.0"); | 
|  | 312 | MODULE_VERSION("1.0"); | 
|  | 313 | MODULE_LICENSE("GPL"); |