blob: 235c0e349820702cf53387f952262e506eee9e06 [file] [log] [blame]
Hans Verkuilf8c08522012-01-16 05:00:26 -03001/*
2 * GemTek radio card driver
3 *
4 * Copyright 1998 Jonas Munsin <jmunsin@iki.fi>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005 *
6 * GemTek hasn't released any specs on the card, so the protocol had to
7 * be reverse engineered with dosemu.
8 *
9 * Besides the protocol changes, this is mostly a copy of:
10 *
11 * RadioTrack II driver for Linux radio support (C) 1998 Ben Pfaff
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -030012 *
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 * Based on RadioTrack I/RadioReveal (C) 1997 M. Kirkwood
Alan Coxd9b01442008-10-27 15:13:47 -030014 * Converted to new API by Alan Cox <alan@lxorguk.ukuu.org.uk>
Linus Torvalds1da177e2005-04-16 15:20:36 -070015 * Various bugfixes and enhancements by Russell Kroll <rkroll@exploits.org>
16 *
Hans Verkuilf8c08522012-01-16 05:00:26 -030017 * Converted to the radio-isa framework by Hans Verkuil <hans.verkuil@cisco.com>
Mauro Carvalho Chehabd1c4ecd2006-08-08 09:10:01 -030018 * Converted to V4L2 API by Mauro Carvalho Chehab <mchehab@infradead.org>
Hans Verkuilf8c08522012-01-16 05:00:26 -030019 *
20 * Note: this card seems to swap the left and right audio channels!
21 *
22 * Fully tested with the Keene USB FM Transmitter and the v4l2-compliance tool.
Linus Torvalds1da177e2005-04-16 15:20:36 -070023 */
24
25#include <linux/module.h> /* Modules */
26#include <linux/init.h> /* Initdata */
Peter Osterlundfb911ee2005-09-13 01:25:15 -070027#include <linux/ioport.h> /* request_region */
Linus Torvalds1da177e2005-04-16 15:20:36 -070028#include <linux/delay.h> /* udelay */
Mauro Carvalho Chehabd1c4ecd2006-08-08 09:10:01 -030029#include <linux/videodev2.h> /* kernel radio structs */
Hans Verkuil502b71b2009-03-06 13:50:42 -030030#include <linux/mutex.h>
31#include <linux/io.h> /* outb, outb_p */
Ondrej Zary38ed1ae2012-03-22 14:53:29 -030032#include <linux/pnp.h>
Hans Verkuil9f1dfcc2012-02-29 05:50:27 -030033#include <linux/slab.h>
Hans Verkuil502b71b2009-03-06 13:50:42 -030034#include <media/v4l2-ioctl.h>
35#include <media/v4l2-device.h>
Hans Verkuilf8c08522012-01-16 05:00:26 -030036#include "radio-isa.h"
Hans Verkuil502b71b2009-03-06 13:50:42 -030037
Pekka Seppanen47536472007-10-01 00:27:55 -030038/*
39 * Module info.
40 */
41
Mauro Carvalho Chehab29834c12011-06-25 10:15:42 -030042MODULE_AUTHOR("Jonas Munsin, Pekka Seppänen <pexu@kapsi.fi>");
Pekka Seppanen47536472007-10-01 00:27:55 -030043MODULE_DESCRIPTION("A driver for the GemTek Radio card.");
44MODULE_LICENSE("GPL");
Hans Verkuilf8c08522012-01-16 05:00:26 -030045MODULE_VERSION("1.0.0");
Pekka Seppanen47536472007-10-01 00:27:55 -030046
47/*
48 * Module params.
49 */
Mauro Carvalho Chehabd1c4ecd2006-08-08 09:10:01 -030050
Linus Torvalds1da177e2005-04-16 15:20:36 -070051#ifndef CONFIG_RADIO_GEMTEK_PORT
52#define CONFIG_RADIO_GEMTEK_PORT -1
53#endif
Pekka Seppanen47536472007-10-01 00:27:55 -030054#ifndef CONFIG_RADIO_GEMTEK_PROBE
55#define CONFIG_RADIO_GEMTEK_PROBE 1
56#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070057
Hans Verkuilf8c08522012-01-16 05:00:26 -030058#define GEMTEK_MAX 4
Linus Torvalds1da177e2005-04-16 15:20:36 -070059
Hans Verkuilf8c08522012-01-16 05:00:26 -030060static bool probe = CONFIG_RADIO_GEMTEK_PROBE;
61static bool hardmute;
62static int io[GEMTEK_MAX] = { [0] = CONFIG_RADIO_GEMTEK_PORT,
63 [1 ... (GEMTEK_MAX - 1)] = -1 };
64static int radio_nr[GEMTEK_MAX] = { [0 ... (GEMTEK_MAX - 1)] = -1 };
65
66module_param(probe, bool, 0444);
67MODULE_PARM_DESC(probe, "Enable automatic device probing.");
68
69module_param(hardmute, bool, 0644);
70MODULE_PARM_DESC(hardmute, "Enable 'hard muting' by shutting down PLL, may "
71 "reduce static noise.");
72
73module_param_array(io, int, NULL, 0444);
74MODULE_PARM_DESC(io, "Force I/O ports for the GemTek Radio card if automatic "
Pekka Seppanen47536472007-10-01 00:27:55 -030075 "probing is disabled or fails. The most common I/O ports are: 0x20c "
76 "0x30c, 0x24c or 0x34c (0x20c, 0x248 and 0x28c have been reported to "
Joe Perches13d97012007-11-19 22:48:16 -030077 "work for the combined sound/radiocard).");
Pekka Seppanen47536472007-10-01 00:27:55 -030078
Hans Verkuilf8c08522012-01-16 05:00:26 -030079module_param_array(radio_nr, int, NULL, 0444);
80MODULE_PARM_DESC(radio_nr, "Radio device numbers");
Pekka Seppanen47536472007-10-01 00:27:55 -030081
Trent Piepho857e5942007-10-01 00:32:25 -030082/*
83 * Frequency calculation constants. Intermediate frequency 10.52 MHz (nominal
84 * value 10.7 MHz), reference divisor 6.39 kHz (nominal 6.25 kHz).
85 */
86#define FSCALE 8
87#define IF_OFFSET ((unsigned int)(10.52 * 16000 * (1<<FSCALE)))
88#define REF_FREQ ((unsigned int)(6.39 * 16 * (1<<FSCALE)))
89
Pekka Seppanen47536472007-10-01 00:27:55 -030090#define GEMTEK_CK 0x01 /* Clock signal */
91#define GEMTEK_DA 0x02 /* Serial data */
92#define GEMTEK_CE 0x04 /* Chip enable */
93#define GEMTEK_NS 0x08 /* No signal */
94#define GEMTEK_MT 0x10 /* Line mute */
95#define GEMTEK_STDF_3_125_KHZ 0x01 /* Standard frequency 3.125 kHz */
96#define GEMTEK_PLL_OFF 0x07 /* PLL off */
97
98#define BU2614_BUS_SIZE 32 /* BU2614 / BU2614FS bus size */
Pekka Seppanen47536472007-10-01 00:27:55 -030099
100#define SHORT_DELAY 5 /* usec */
101#define LONG_DELAY 75 /* usec */
102
Hans Verkuil502b71b2009-03-06 13:50:42 -0300103struct gemtek {
Hans Verkuilf8c08522012-01-16 05:00:26 -0300104 struct radio_isa_card isa;
105 bool muted;
Trent Piephob25be972007-10-01 00:38:30 -0300106 u32 bu2614data;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700107};
108
Trent Piephob25be972007-10-01 00:38:30 -0300109#define BU2614_FREQ_BITS 16 /* D0..D15, Frequency data */
110#define BU2614_PORT_BITS 3 /* P0..P2, Output port control data */
111#define BU2614_VOID_BITS 4 /* unused */
112#define BU2614_FMES_BITS 1 /* CT, Frequency measurement beginning data */
113#define BU2614_STDF_BITS 3 /* R0..R2, Standard frequency data */
114#define BU2614_SWIN_BITS 1 /* S, Switch between FMIN / AMIN */
115#define BU2614_SWAL_BITS 1 /* PS, Swallow counter division (AMIN only)*/
116#define BU2614_VOID2_BITS 1 /* unused */
117#define BU2614_FMUN_BITS 1 /* GT, Frequency measurement time & unlock */
118#define BU2614_TEST_BITS 1 /* TS, Test data is input */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700119
Trent Piephob25be972007-10-01 00:38:30 -0300120#define BU2614_FREQ_SHIFT 0
121#define BU2614_PORT_SHIFT (BU2614_FREQ_BITS + BU2614_FREQ_SHIFT)
122#define BU2614_VOID_SHIFT (BU2614_PORT_BITS + BU2614_PORT_SHIFT)
123#define BU2614_FMES_SHIFT (BU2614_VOID_BITS + BU2614_VOID_SHIFT)
124#define BU2614_STDF_SHIFT (BU2614_FMES_BITS + BU2614_FMES_SHIFT)
125#define BU2614_SWIN_SHIFT (BU2614_STDF_BITS + BU2614_STDF_SHIFT)
126#define BU2614_SWAL_SHIFT (BU2614_SWIN_BITS + BU2614_SWIN_SHIFT)
127#define BU2614_VOID2_SHIFT (BU2614_SWAL_BITS + BU2614_SWAL_SHIFT)
128#define BU2614_FMUN_SHIFT (BU2614_VOID2_BITS + BU2614_VOID2_SHIFT)
129#define BU2614_TEST_SHIFT (BU2614_FMUN_BITS + BU2614_FMUN_SHIFT)
130
131#define MKMASK(field) (((1<<BU2614_##field##_BITS) - 1) << \
132 BU2614_##field##_SHIFT)
133#define BU2614_PORT_MASK MKMASK(PORT)
134#define BU2614_FREQ_MASK MKMASK(FREQ)
135#define BU2614_VOID_MASK MKMASK(VOID)
136#define BU2614_FMES_MASK MKMASK(FMES)
137#define BU2614_STDF_MASK MKMASK(STDF)
138#define BU2614_SWIN_MASK MKMASK(SWIN)
139#define BU2614_SWAL_MASK MKMASK(SWAL)
140#define BU2614_VOID2_MASK MKMASK(VOID2)
141#define BU2614_FMUN_MASK MKMASK(FMUN)
142#define BU2614_TEST_MASK MKMASK(TEST)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143
Pekka Seppanen47536472007-10-01 00:27:55 -0300144/*
145 * Set data which will be sent to BU2614FS.
146 */
Trent Piephob25be972007-10-01 00:38:30 -0300147#define gemtek_bu2614_set(dev, field, data) ((dev)->bu2614data = \
148 ((dev)->bu2614data & ~field##_MASK) | ((data) << field##_SHIFT))
Pekka Seppanen47536472007-10-01 00:27:55 -0300149
150/*
151 * Transmit settings to BU2614FS over GemTek IC.
152 */
Hans Verkuil502b71b2009-03-06 13:50:42 -0300153static void gemtek_bu2614_transmit(struct gemtek *gt)
Pekka Seppanen47536472007-10-01 00:27:55 -0300154{
Hans Verkuilf8c08522012-01-16 05:00:26 -0300155 struct radio_isa_card *isa = &gt->isa;
Pekka Seppanen47536472007-10-01 00:27:55 -0300156 int i, bit, q, mute;
157
Hans Verkuil502b71b2009-03-06 13:50:42 -0300158 mute = gt->muted ? GEMTEK_MT : 0x00;
Pekka Seppanen47536472007-10-01 00:27:55 -0300159
Hans Verkuilf8c08522012-01-16 05:00:26 -0300160 outb_p(mute | GEMTEK_CE | GEMTEK_DA | GEMTEK_CK, isa->io);
Pekka Seppanen47536472007-10-01 00:27:55 -0300161 udelay(LONG_DELAY);
162
Hans Verkuil502b71b2009-03-06 13:50:42 -0300163 for (i = 0, q = gt->bu2614data; i < 32; i++, q >>= 1) {
164 bit = (q & 1) ? GEMTEK_DA : 0;
Hans Verkuilf8c08522012-01-16 05:00:26 -0300165 outb_p(mute | GEMTEK_CE | bit, isa->io);
Hans Verkuil502b71b2009-03-06 13:50:42 -0300166 udelay(SHORT_DELAY);
Hans Verkuilf8c08522012-01-16 05:00:26 -0300167 outb_p(mute | GEMTEK_CE | bit | GEMTEK_CK, isa->io);
Hans Verkuil502b71b2009-03-06 13:50:42 -0300168 udelay(SHORT_DELAY);
Pekka Seppanen47536472007-10-01 00:27:55 -0300169 }
170
Hans Verkuilf8c08522012-01-16 05:00:26 -0300171 outb_p(mute | GEMTEK_DA | GEMTEK_CK, isa->io);
Pekka Seppanen47536472007-10-01 00:27:55 -0300172 udelay(SHORT_DELAY);
Pekka Seppanen47536472007-10-01 00:27:55 -0300173}
174
175/*
Trent Piepho857e5942007-10-01 00:32:25 -0300176 * Calculate divisor from FM-frequency for BU2614FS (3.125 KHz STDF expected).
Pekka Seppanen47536472007-10-01 00:27:55 -0300177 */
Trent Piepho857e5942007-10-01 00:32:25 -0300178static unsigned long gemtek_convfreq(unsigned long freq)
Pekka Seppanen47536472007-10-01 00:27:55 -0300179{
Hans Verkuilf8c08522012-01-16 05:00:26 -0300180 return ((freq << FSCALE) + IF_OFFSET + REF_FREQ / 2) / REF_FREQ;
181}
182
183static struct radio_isa_card *gemtek_alloc(void)
184{
185 struct gemtek *gt = kzalloc(sizeof(*gt), GFP_KERNEL);
186
187 if (gt)
188 gt->muted = true;
189 return gt ? &gt->isa : NULL;
Pekka Seppanen47536472007-10-01 00:27:55 -0300190}
191
192/*
193 * Set FM-frequency.
194 */
Hans Verkuilf8c08522012-01-16 05:00:26 -0300195static int gemtek_s_frequency(struct radio_isa_card *isa, u32 freq)
Pekka Seppanen47536472007-10-01 00:27:55 -0300196{
Hans Verkuilf8c08522012-01-16 05:00:26 -0300197 struct gemtek *gt = container_of(isa, struct gemtek, isa);
Pekka Seppanen47536472007-10-01 00:27:55 -0300198
Hans Verkuilf8c08522012-01-16 05:00:26 -0300199 if (hardmute && gt->muted)
200 return 0;
Pekka Seppanen47536472007-10-01 00:27:55 -0300201
Hans Verkuil502b71b2009-03-06 13:50:42 -0300202 gemtek_bu2614_set(gt, BU2614_PORT, 0);
203 gemtek_bu2614_set(gt, BU2614_FMES, 0);
204 gemtek_bu2614_set(gt, BU2614_SWIN, 0); /* FM-mode */
205 gemtek_bu2614_set(gt, BU2614_SWAL, 0);
206 gemtek_bu2614_set(gt, BU2614_FMUN, 1); /* GT bit set */
207 gemtek_bu2614_set(gt, BU2614_TEST, 0);
Hans Verkuil502b71b2009-03-06 13:50:42 -0300208 gemtek_bu2614_set(gt, BU2614_STDF, GEMTEK_STDF_3_125_KHZ);
209 gemtek_bu2614_set(gt, BU2614_FREQ, gemtek_convfreq(freq));
Hans Verkuil502b71b2009-03-06 13:50:42 -0300210 gemtek_bu2614_transmit(gt);
Hans Verkuilf8c08522012-01-16 05:00:26 -0300211 return 0;
Pekka Seppanen47536472007-10-01 00:27:55 -0300212}
213
214/*
215 * Set mute flag.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700216 */
Hans Verkuilf8c08522012-01-16 05:00:26 -0300217static int gemtek_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700218{
Hans Verkuilf8c08522012-01-16 05:00:26 -0300219 struct gemtek *gt = container_of(isa, struct gemtek, isa);
Pekka Seppanen47536472007-10-01 00:27:55 -0300220 int i;
Hans Verkuil502b71b2009-03-06 13:50:42 -0300221
Hans Verkuilf8c08522012-01-16 05:00:26 -0300222 gt->muted = mute;
Pekka Seppanen47536472007-10-01 00:27:55 -0300223 if (hardmute) {
Hans Verkuilf8c08522012-01-16 05:00:26 -0300224 if (!mute)
225 return gemtek_s_frequency(isa, isa->freq);
226
Pekka Seppanen47536472007-10-01 00:27:55 -0300227 /* Turn off PLL, disable data output */
Hans Verkuil502b71b2009-03-06 13:50:42 -0300228 gemtek_bu2614_set(gt, BU2614_PORT, 0);
229 gemtek_bu2614_set(gt, BU2614_FMES, 0); /* CT bit off */
230 gemtek_bu2614_set(gt, BU2614_SWIN, 0); /* FM-mode */
231 gemtek_bu2614_set(gt, BU2614_SWAL, 0);
232 gemtek_bu2614_set(gt, BU2614_FMUN, 0); /* GT bit off */
233 gemtek_bu2614_set(gt, BU2614_TEST, 0);
234 gemtek_bu2614_set(gt, BU2614_STDF, GEMTEK_PLL_OFF);
235 gemtek_bu2614_set(gt, BU2614_FREQ, 0);
236 gemtek_bu2614_transmit(gt);
Hans Verkuilf8c08522012-01-16 05:00:26 -0300237 return 0;
Pekka Seppanen47536472007-10-01 00:27:55 -0300238 }
Hans Verkuil502b71b2009-03-06 13:50:42 -0300239
Hans Verkuil502b71b2009-03-06 13:50:42 -0300240 /* Read bus contents (CE, CK and DA). */
Hans Verkuilf8c08522012-01-16 05:00:26 -0300241 i = inb_p(isa->io);
Hans Verkuil502b71b2009-03-06 13:50:42 -0300242 /* Write it back with mute flag set. */
Hans Verkuilf8c08522012-01-16 05:00:26 -0300243 outb_p((i >> 5) | (mute ? GEMTEK_MT : 0), isa->io);
Hans Verkuil502b71b2009-03-06 13:50:42 -0300244 udelay(SHORT_DELAY);
Hans Verkuilf8c08522012-01-16 05:00:26 -0300245 return 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700246}
247
Hans Verkuilf8c08522012-01-16 05:00:26 -0300248static u32 gemtek_g_rxsubchans(struct radio_isa_card *isa)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700249{
Hans Verkuilf8c08522012-01-16 05:00:26 -0300250 if (inb_p(isa->io) & GEMTEK_NS)
251 return V4L2_TUNER_SUB_MONO;
252 return V4L2_TUNER_SUB_STEREO;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700253}
254
Pekka Seppanen47536472007-10-01 00:27:55 -0300255/*
256 * Check if requested card acts like GemTek Radio card.
257 */
Hans Verkuilf8c08522012-01-16 05:00:26 -0300258static bool gemtek_probe(struct radio_isa_card *isa, int io)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700259{
Pekka Seppanen47536472007-10-01 00:27:55 -0300260 int i, q;
261
Hans Verkuilf8c08522012-01-16 05:00:26 -0300262 q = inb_p(io); /* Read bus contents before probing. */
Pekka Seppanen47536472007-10-01 00:27:55 -0300263 /* Try to turn on CE, CK and DA respectively and check if card responds
264 properly. */
265 for (i = 0; i < 3; ++i) {
Hans Verkuilf8c08522012-01-16 05:00:26 -0300266 outb_p(1 << i, io);
Pekka Seppanen47536472007-10-01 00:27:55 -0300267 udelay(SHORT_DELAY);
268
Hans Verkuilf8c08522012-01-16 05:00:26 -0300269 if ((inb_p(io) & ~GEMTEK_NS) != (0x17 | (1 << (i + 5))))
270 return false;
Pekka Seppanen47536472007-10-01 00:27:55 -0300271 }
Hans Verkuilf8c08522012-01-16 05:00:26 -0300272 outb_p(q >> 5, io); /* Write bus contents back. */
Pekka Seppanen47536472007-10-01 00:27:55 -0300273 udelay(SHORT_DELAY);
Hans Verkuilf8c08522012-01-16 05:00:26 -0300274 return true;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700275}
276
Hans Verkuilf8c08522012-01-16 05:00:26 -0300277static const struct radio_isa_ops gemtek_ops = {
278 .alloc = gemtek_alloc,
279 .probe = gemtek_probe,
280 .s_mute_volume = gemtek_s_mute_volume,
281 .s_frequency = gemtek_s_frequency,
282 .g_rxsubchans = gemtek_g_rxsubchans,
Pekka Seppanen47536472007-10-01 00:27:55 -0300283};
284
Hans Verkuilf8c08522012-01-16 05:00:26 -0300285static const int gemtek_ioports[] = { 0x20c, 0x30c, 0x24c, 0x34c, 0x248, 0x28c };
Linus Torvalds1da177e2005-04-16 15:20:36 -0700286
Ondrej Zary38ed1ae2012-03-22 14:53:29 -0300287#ifdef CONFIG_PNP
288static struct pnp_device_id gemtek_pnp_devices[] = {
289 /* AOpen FX-3D/Pro Radio */
290 {.id = "ADS7183", .driver_data = 0},
291 {.id = ""}
292};
293
294MODULE_DEVICE_TABLE(pnp, gemtek_pnp_devices);
295#endif
296
Hans Verkuilf8c08522012-01-16 05:00:26 -0300297static struct radio_isa_driver gemtek_driver = {
298 .driver = {
299 .match = radio_isa_match,
300 .probe = radio_isa_probe,
301 .remove = radio_isa_remove,
302 .driver = {
303 .name = "radio-gemtek",
304 },
305 },
Ondrej Zary38ed1ae2012-03-22 14:53:29 -0300306#ifdef CONFIG_PNP
307 .pnp_driver = {
308 .name = "radio-gemtek",
309 .id_table = gemtek_pnp_devices,
310 .probe = radio_isa_pnp_probe,
311 .remove = radio_isa_pnp_remove,
312 },
313#endif
Hans Verkuilf8c08522012-01-16 05:00:26 -0300314 .io_params = io,
315 .radio_nr_params = radio_nr,
316 .io_ports = gemtek_ioports,
317 .num_of_io_ports = ARRAY_SIZE(gemtek_ioports),
318 .region_size = 1,
319 .card = "GemTek Radio",
320 .ops = &gemtek_ops,
321 .has_stereo = true,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700322};
323
Linus Torvalds1da177e2005-04-16 15:20:36 -0700324static int __init gemtek_init(void)
325{
Hans Verkuilf8c08522012-01-16 05:00:26 -0300326 gemtek_driver.probe = probe;
Ondrej Zary38ed1ae2012-03-22 14:53:29 -0300327#ifdef CONFIG_PNP
328 pnp_register_driver(&gemtek_driver.pnp_driver);
329#endif
Hans Verkuilf8c08522012-01-16 05:00:26 -0300330 return isa_register_driver(&gemtek_driver.driver, GEMTEK_MAX);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700331}
332
Pekka Seppanen47536472007-10-01 00:27:55 -0300333static void __exit gemtek_exit(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700334{
Hans Verkuilf8c08522012-01-16 05:00:26 -0300335 hardmute = 1; /* Turn off PLL */
Ondrej Zary38ed1ae2012-03-22 14:53:29 -0300336#ifdef CONFIG_PNP
337 pnp_unregister_driver(&gemtek_driver.pnp_driver);
338#endif
Hans Verkuilf8c08522012-01-16 05:00:26 -0300339 isa_unregister_driver(&gemtek_driver.driver);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700340}
341
342module_init(gemtek_init);
Pekka Seppanen47536472007-10-01 00:27:55 -0300343module_exit(gemtek_exit);