blob: 1c3c14a3839cff9d7a0f2a990ef0fa683b8d83d5 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
Brent Casavant107d5a72006-10-17 00:09:24 -07006 * Copyright (C) 2005-2006 Silicon Graphics, Inc. All Rights Reserved.
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 */
8
Brent Casavant22329b52005-06-21 17:15:59 -07009/* This file contains the master driver module for use by SGI IOC4 subdrivers.
10 *
11 * It allocates any resources shared between multiple subdevices, and
12 * provides accessor functions (where needed) and the like for those
13 * resources. It also provides a mechanism for the subdevice modules
14 * to support loading and unloading.
15 *
16 * Non-shared resources (e.g. external interrupt A_INT_OUT register page
17 * alias, serial port and UART registers) are handled by the subdevice
18 * modules themselves.
19 *
20 * This is all necessary because IOC4 is not implemented as a multi-function
21 * PCI device, but an amalgamation of disparate registers for several
22 * types of device (ATA, serial, external interrupts). The normal
23 * resource management in the kernel doesn't have quite the right interfaces
24 * to handle this situation (e.g. multiple modules can't claim the same
25 * PCI ID), thus this IOC4 master module.
Linus Torvalds1da177e2005-04-16 15:20:36 -070026 */
27
28#include <linux/errno.h>
29#include <linux/module.h>
30#include <linux/pci.h>
Brent Casavant22329b52005-06-21 17:15:59 -070031#include <linux/ioc4.h>
Brent Casavant107d5a72006-10-17 00:09:24 -070032#include <linux/ktime.h>
Jes Sorensen6e586f32006-01-17 12:24:39 -050033#include <linux/mutex.h>
Brent Casavant107d5a72006-10-17 00:09:24 -070034#include <linux/time.h>
Brent Casavantd4c477c2005-06-21 17:16:01 -070035
36/***************
37 * Definitions *
38 ***************/
39
40/* Tweakable values */
41
42/* PCI bus speed detection/calibration */
Brent Casavant107d5a72006-10-17 00:09:24 -070043#define IOC4_CALIBRATE_COUNT 63 /* Calibration cycle period */
Brent Casavantd4c477c2005-06-21 17:16:01 -070044#define IOC4_CALIBRATE_CYCLES 256 /* Average over this many cycles */
45#define IOC4_CALIBRATE_DISCARD 2 /* Discard first few cycles */
46#define IOC4_CALIBRATE_LOW_MHZ 25 /* Lower bound on bus speed sanity */
47#define IOC4_CALIBRATE_HIGH_MHZ 75 /* Upper bound on bus speed sanity */
48#define IOC4_CALIBRATE_DEFAULT_MHZ 66 /* Assumed if sanity check fails */
Linus Torvalds1da177e2005-04-16 15:20:36 -070049
Brent Casavant22329b52005-06-21 17:15:59 -070050/************************
51 * Submodule management *
52 ************************/
Linus Torvalds1da177e2005-04-16 15:20:36 -070053
Jes Sorensen6e586f32006-01-17 12:24:39 -050054static DEFINE_MUTEX(ioc4_mutex);
Brent Casavant22329b52005-06-21 17:15:59 -070055
Jes Sorensen6e586f32006-01-17 12:24:39 -050056static LIST_HEAD(ioc4_devices);
Brent Casavant22329b52005-06-21 17:15:59 -070057static LIST_HEAD(ioc4_submodules);
Brent Casavant22329b52005-06-21 17:15:59 -070058
59/* Register an IOC4 submodule */
60int
61ioc4_register_submodule(struct ioc4_submodule *is)
Linus Torvalds1da177e2005-04-16 15:20:36 -070062{
Brent Casavant22329b52005-06-21 17:15:59 -070063 struct ioc4_driver_data *idd;
64
Jes Sorensen6e586f32006-01-17 12:24:39 -050065 mutex_lock(&ioc4_mutex);
Brent Casavant22329b52005-06-21 17:15:59 -070066 list_add(&is->is_list, &ioc4_submodules);
Brent Casavant22329b52005-06-21 17:15:59 -070067
68 /* Initialize submodule for each IOC4 */
69 if (!is->is_probe)
Jes Sorensen6e586f32006-01-17 12:24:39 -050070 goto out;
Brent Casavant22329b52005-06-21 17:15:59 -070071
Brent Casavant22329b52005-06-21 17:15:59 -070072 list_for_each_entry(idd, &ioc4_devices, idd_list) {
73 if (is->is_probe(idd)) {
74 printk(KERN_WARNING
75 "%s: IOC4 submodule %s probe failed "
76 "for pci_dev %s",
77 __FUNCTION__, module_name(is->is_owner),
78 pci_name(idd->idd_pdev));
79 }
80 }
Jes Sorensen6e586f32006-01-17 12:24:39 -050081 out:
82 mutex_unlock(&ioc4_mutex);
Brent Casavant22329b52005-06-21 17:15:59 -070083 return 0;
84}
85
86/* Unregister an IOC4 submodule */
87void
88ioc4_unregister_submodule(struct ioc4_submodule *is)
89{
90 struct ioc4_driver_data *idd;
91
Jes Sorensen6e586f32006-01-17 12:24:39 -050092 mutex_lock(&ioc4_mutex);
Brent Casavant22329b52005-06-21 17:15:59 -070093 list_del(&is->is_list);
Brent Casavant22329b52005-06-21 17:15:59 -070094
95 /* Remove submodule for each IOC4 */
96 if (!is->is_remove)
Jes Sorensen6e586f32006-01-17 12:24:39 -050097 goto out;
Brent Casavant22329b52005-06-21 17:15:59 -070098
Brent Casavant22329b52005-06-21 17:15:59 -070099 list_for_each_entry(idd, &ioc4_devices, idd_list) {
100 if (is->is_remove(idd)) {
101 printk(KERN_WARNING
102 "%s: IOC4 submodule %s remove failed "
103 "for pci_dev %s.\n",
104 __FUNCTION__, module_name(is->is_owner),
105 pci_name(idd->idd_pdev));
106 }
107 }
Jes Sorensen6e586f32006-01-17 12:24:39 -0500108 out:
109 mutex_unlock(&ioc4_mutex);
Brent Casavant22329b52005-06-21 17:15:59 -0700110}
111
112/*********************
113 * Device management *
114 *********************/
115
Brent Casavantd4c477c2005-06-21 17:16:01 -0700116#define IOC4_CALIBRATE_LOW_LIMIT \
117 (1000*IOC4_EXTINT_COUNT_DIVISOR/IOC4_CALIBRATE_LOW_MHZ)
118#define IOC4_CALIBRATE_HIGH_LIMIT \
119 (1000*IOC4_EXTINT_COUNT_DIVISOR/IOC4_CALIBRATE_HIGH_MHZ)
120#define IOC4_CALIBRATE_DEFAULT \
121 (1000*IOC4_EXTINT_COUNT_DIVISOR/IOC4_CALIBRATE_DEFAULT_MHZ)
122
123#define IOC4_CALIBRATE_END \
124 (IOC4_CALIBRATE_CYCLES + IOC4_CALIBRATE_DISCARD)
125
126#define IOC4_INT_OUT_MODE_TOGGLE 0x7 /* Toggle INT_OUT every COUNT+1 ticks */
127
128/* Determines external interrupt output clock period of the PCI bus an
129 * IOC4 is attached to. This value can be used to determine the PCI
130 * bus speed.
131 *
132 * IOC4 has a design feature that various internal timers are derived from
133 * the PCI bus clock. This causes IOC4 device drivers to need to take the
134 * bus speed into account when setting various register values (e.g. INT_OUT
135 * register COUNT field, UART divisors, etc). Since this information is
136 * needed by several subdrivers, it is determined by the main IOC4 driver,
137 * even though the following code utilizes external interrupt registers
138 * to perform the speed calculation.
139 */
140static void
141ioc4_clock_calibrate(struct ioc4_driver_data *idd)
142{
Brent Casavantd4c477c2005-06-21 17:16:01 -0700143 union ioc4_int_out int_out;
144 union ioc4_gpcr gpcr;
145 unsigned int state, last_state = 1;
Brent Casavant107d5a72006-10-17 00:09:24 -0700146 struct timespec start_ts, end_ts;
147 uint64_t start, end, period;
Brent Casavantd4c477c2005-06-21 17:16:01 -0700148 unsigned int count = 0;
149
150 /* Enable output */
151 gpcr.raw = 0;
152 gpcr.fields.dir = IOC4_GPCR_DIR_0;
153 gpcr.fields.int_out_en = 1;
154 writel(gpcr.raw, &idd->idd_misc_regs->gpcr_s.raw);
155
156 /* Reset to power-on state */
157 writel(0, &idd->idd_misc_regs->int_out.raw);
158 mmiowb();
159
Brent Casavantd4c477c2005-06-21 17:16:01 -0700160 /* Set up square wave */
161 int_out.raw = 0;
162 int_out.fields.count = IOC4_CALIBRATE_COUNT;
163 int_out.fields.mode = IOC4_INT_OUT_MODE_TOGGLE;
164 int_out.fields.diag = 0;
165 writel(int_out.raw, &idd->idd_misc_regs->int_out.raw);
166 mmiowb();
167
168 /* Check square wave period averaged over some number of cycles */
169 do {
170 int_out.raw = readl(&idd->idd_misc_regs->int_out.raw);
171 state = int_out.fields.int_out;
172 if (!last_state && state) {
173 count++;
174 if (count == IOC4_CALIBRATE_END) {
Brent Casavant107d5a72006-10-17 00:09:24 -0700175 ktime_get_ts(&end_ts);
Brent Casavantd4c477c2005-06-21 17:16:01 -0700176 break;
177 } else if (count == IOC4_CALIBRATE_DISCARD)
Brent Casavant107d5a72006-10-17 00:09:24 -0700178 ktime_get_ts(&start_ts);
Brent Casavantd4c477c2005-06-21 17:16:01 -0700179 }
180 last_state = state;
181 } while (1);
182
183 /* Calculation rearranged to preserve intermediate precision.
184 * Logically:
Brent Casavant107d5a72006-10-17 00:09:24 -0700185 * 1. "end - start" gives us the measurement period over all
186 * the square wave cycles.
187 * 2. Divide by number of square wave cycles to get the period
188 * of a square wave cycle.
Brent Casavantd4c477c2005-06-21 17:16:01 -0700189 * 3. Divide by 2*(int_out.fields.count+1), which is the formula
190 * by which the IOC4 generates the square wave, to get the
Brent Casavant107d5a72006-10-17 00:09:24 -0700191 * period of an IOC4 INT_OUT count.
Brent Casavantd4c477c2005-06-21 17:16:01 -0700192 */
Brent Casavant107d5a72006-10-17 00:09:24 -0700193 end = end_ts.tv_sec * NSEC_PER_SEC + end_ts.tv_nsec;
194 start = start_ts.tv_sec * NSEC_PER_SEC + start_ts.tv_nsec;
195 period = (end - start) /
196 (IOC4_CALIBRATE_CYCLES * 2 * (IOC4_CALIBRATE_COUNT + 1));
Brent Casavantd4c477c2005-06-21 17:16:01 -0700197
198 /* Bounds check the result. */
199 if (period > IOC4_CALIBRATE_LOW_LIMIT ||
200 period < IOC4_CALIBRATE_HIGH_LIMIT) {
Brent Casavantf5befce2006-06-23 02:05:52 -0700201 printk(KERN_INFO
202 "IOC4 %s: Clock calibration failed. Assuming"
203 "PCI clock is %d ns.\n",
204 pci_name(idd->idd_pdev),
Brent Casavantd4c477c2005-06-21 17:16:01 -0700205 IOC4_CALIBRATE_DEFAULT / IOC4_EXTINT_COUNT_DIVISOR);
206 period = IOC4_CALIBRATE_DEFAULT;
207 } else {
Brent Casavant59f14802006-10-17 00:09:25 -0700208 u64 ns = period;
209
210 do_div(ns, IOC4_EXTINT_COUNT_DIVISOR);
Brent Casavantf5befce2006-06-23 02:05:52 -0700211 printk(KERN_DEBUG
Brent Casavant59f14802006-10-17 00:09:25 -0700212 "IOC4 %s: PCI clock is %lld ns.\n",
213 pci_name(idd->idd_pdev), ns);
Brent Casavantd4c477c2005-06-21 17:16:01 -0700214 }
215
216 /* Remember results. We store the extint clock period rather
217 * than the PCI clock period so that greater precision is
218 * retained. Divide by IOC4_EXTINT_COUNT_DIVISOR to get
219 * PCI clock period.
220 */
221 idd->count_period = period;
222}
223
Brent Casavantf5befce2006-06-23 02:05:52 -0700224/* There are three variants of IOC4 cards: IO9, IO10, and PCI-RT.
225 * Each brings out different combinations of IOC4 signals, thus.
226 * the IOC4 subdrivers need to know to which we're attached.
227 *
228 * We look for the presence of a SCSI (IO9) or SATA (IO10) controller
229 * on the same PCI bus at slot number 3 to differentiate IO9 from IO10.
230 * If neither is present, it's a PCI-RT.
231 */
232static unsigned int
233ioc4_variant(struct ioc4_driver_data *idd)
234{
235 struct pci_dev *pdev = NULL;
236 int found = 0;
237
238 /* IO9: Look for a QLogic ISP 12160 at the same bus and slot 3. */
239 do {
240 pdev = pci_get_device(PCI_VENDOR_ID_QLOGIC,
241 PCI_DEVICE_ID_QLOGIC_ISP12160, pdev);
242 if (pdev &&
243 idd->idd_pdev->bus->number == pdev->bus->number &&
244 3 == PCI_SLOT(pdev->devfn))
245 found = 1;
246 pci_dev_put(pdev);
247 } while (pdev && !found);
248 if (NULL != pdev)
249 return IOC4_VARIANT_IO9;
250
251 /* IO10: Look for a Vitesse VSC 7174 at the same bus and slot 3. */
252 pdev = NULL;
253 do {
254 pdev = pci_get_device(PCI_VENDOR_ID_VITESSE,
255 PCI_DEVICE_ID_VITESSE_VSC7174, pdev);
256 if (pdev &&
257 idd->idd_pdev->bus->number == pdev->bus->number &&
258 3 == PCI_SLOT(pdev->devfn))
259 found = 1;
260 pci_dev_put(pdev);
261 } while (pdev && !found);
262 if (NULL != pdev)
263 return IOC4_VARIANT_IO10;
264
265 /* PCI-RT: No SCSI/SATA controller will be present */
266 return IOC4_VARIANT_PCI_RT;
267}
268
Brent Casavant22329b52005-06-21 17:15:59 -0700269/* Adds a new instance of an IOC4 card */
270static int
271ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
272{
273 struct ioc4_driver_data *idd;
274 struct ioc4_submodule *is;
275 uint32_t pcmd;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700276 int ret;
277
Brent Casavant22329b52005-06-21 17:15:59 -0700278 /* Enable IOC4 and take ownership of it */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700279 if ((ret = pci_enable_device(pdev))) {
280 printk(KERN_WARNING
Brent Casavant22329b52005-06-21 17:15:59 -0700281 "%s: Failed to enable IOC4 device for pci_dev %s.\n",
282 __FUNCTION__, pci_name(pdev));
283 goto out;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700284 }
285 pci_set_master(pdev);
286
Brent Casavant22329b52005-06-21 17:15:59 -0700287 /* Set up per-IOC4 data */
288 idd = kmalloc(sizeof(struct ioc4_driver_data), GFP_KERNEL);
289 if (!idd) {
290 printk(KERN_WARNING
291 "%s: Failed to allocate IOC4 data for pci_dev %s.\n",
292 __FUNCTION__, pci_name(pdev));
293 ret = -ENODEV;
294 goto out_idd;
295 }
296 idd->idd_pdev = pdev;
297 idd->idd_pci_id = pci_id;
298
299 /* Map IOC4 misc registers. These are shared between subdevices
300 * so the main IOC4 module manages them.
301 */
302 idd->idd_bar0 = pci_resource_start(idd->idd_pdev, 0);
303 if (!idd->idd_bar0) {
304 printk(KERN_WARNING
305 "%s: Unable to find IOC4 misc resource "
306 "for pci_dev %s.\n",
307 __FUNCTION__, pci_name(idd->idd_pdev));
308 ret = -ENODEV;
309 goto out_pci;
310 }
311 if (!request_region(idd->idd_bar0, sizeof(struct ioc4_misc_regs),
312 "ioc4_misc")) {
313 printk(KERN_WARNING
314 "%s: Unable to request IOC4 misc region "
315 "for pci_dev %s.\n",
316 __FUNCTION__, pci_name(idd->idd_pdev));
317 ret = -ENODEV;
318 goto out_pci;
319 }
320 idd->idd_misc_regs = ioremap(idd->idd_bar0,
321 sizeof(struct ioc4_misc_regs));
322 if (!idd->idd_misc_regs) {
323 printk(KERN_WARNING
324 "%s: Unable to remap IOC4 misc region "
325 "for pci_dev %s.\n",
326 __FUNCTION__, pci_name(idd->idd_pdev));
327 ret = -ENODEV;
328 goto out_misc_region;
329 }
330
331 /* Failsafe portion of per-IOC4 initialization */
332
Brent Casavantf5befce2006-06-23 02:05:52 -0700333 /* Detect card variant */
334 idd->idd_variant = ioc4_variant(idd);
335 printk(KERN_INFO "IOC4 %s: %s card detected.\n", pci_name(pdev),
336 idd->idd_variant == IOC4_VARIANT_IO9 ? "IO9" :
337 idd->idd_variant == IOC4_VARIANT_PCI_RT ? "PCI-RT" :
338 idd->idd_variant == IOC4_VARIANT_IO10 ? "IO10" : "unknown");
339
Brent Casavant22329b52005-06-21 17:15:59 -0700340 /* Initialize IOC4 */
341 pci_read_config_dword(idd->idd_pdev, PCI_COMMAND, &pcmd);
342 pci_write_config_dword(idd->idd_pdev, PCI_COMMAND,
343 pcmd | PCI_COMMAND_PARITY | PCI_COMMAND_SERR);
344
Brent Casavantd4c477c2005-06-21 17:16:01 -0700345 /* Determine PCI clock */
346 ioc4_clock_calibrate(idd);
347
Brent Casavant22329b52005-06-21 17:15:59 -0700348 /* Disable/clear all interrupts. Need to do this here lest
349 * one submodule request the shared IOC4 IRQ, but interrupt
350 * is generated by a different subdevice.
351 */
352 /* Disable */
353 writel(~0, &idd->idd_misc_regs->other_iec.raw);
354 writel(~0, &idd->idd_misc_regs->sio_iec);
355 /* Clear (i.e. acknowledge) */
356 writel(~0, &idd->idd_misc_regs->other_ir.raw);
357 writel(~0, &idd->idd_misc_regs->sio_ir);
358
359 /* Track PCI-device specific data */
360 idd->idd_serial_data = NULL;
361 pci_set_drvdata(idd->idd_pdev, idd);
Jes Sorensen6e586f32006-01-17 12:24:39 -0500362
363 mutex_lock(&ioc4_mutex);
Brent Casavant8683dc92006-05-03 19:55:10 -0700364 list_add_tail(&idd->idd_list, &ioc4_devices);
Brent Casavant22329b52005-06-21 17:15:59 -0700365
366 /* Add this IOC4 to all submodules */
Brent Casavant22329b52005-06-21 17:15:59 -0700367 list_for_each_entry(is, &ioc4_submodules, is_list) {
368 if (is->is_probe && is->is_probe(idd)) {
369 printk(KERN_WARNING
370 "%s: IOC4 submodule 0x%s probe failed "
371 "for pci_dev %s.\n",
372 __FUNCTION__, module_name(is->is_owner),
373 pci_name(idd->idd_pdev));
374 }
375 }
Jes Sorensen6e586f32006-01-17 12:24:39 -0500376 mutex_unlock(&ioc4_mutex);
Brent Casavant22329b52005-06-21 17:15:59 -0700377
378 return 0;
379
380out_misc_region:
381 release_region(idd->idd_bar0, sizeof(struct ioc4_misc_regs));
382out_pci:
383 kfree(idd);
384out_idd:
385 pci_disable_device(pdev);
386out:
387 return ret;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700388}
389
Brent Casavant22329b52005-06-21 17:15:59 -0700390/* Removes a particular instance of an IOC4 card. */
391static void
392ioc4_remove(struct pci_dev *pdev)
393{
394 struct ioc4_submodule *is;
395 struct ioc4_driver_data *idd;
396
397 idd = pci_get_drvdata(pdev);
398
399 /* Remove this IOC4 from all submodules */
Jes Sorensen6e586f32006-01-17 12:24:39 -0500400 mutex_lock(&ioc4_mutex);
Brent Casavant22329b52005-06-21 17:15:59 -0700401 list_for_each_entry(is, &ioc4_submodules, is_list) {
402 if (is->is_remove && is->is_remove(idd)) {
403 printk(KERN_WARNING
404 "%s: IOC4 submodule 0x%s remove failed "
405 "for pci_dev %s.\n",
406 __FUNCTION__, module_name(is->is_owner),
407 pci_name(idd->idd_pdev));
408 }
409 }
Jes Sorensen6e586f32006-01-17 12:24:39 -0500410 mutex_unlock(&ioc4_mutex);
Brent Casavant22329b52005-06-21 17:15:59 -0700411
412 /* Release resources */
413 iounmap(idd->idd_misc_regs);
414 if (!idd->idd_bar0) {
415 printk(KERN_WARNING
416 "%s: Unable to get IOC4 misc mapping for pci_dev %s. "
417 "Device removal may be incomplete.\n",
418 __FUNCTION__, pci_name(idd->idd_pdev));
419 }
420 release_region(idd->idd_bar0, sizeof(struct ioc4_misc_regs));
421
422 /* Disable IOC4 and relinquish */
423 pci_disable_device(pdev);
424
425 /* Remove and free driver data */
Jes Sorensen6e586f32006-01-17 12:24:39 -0500426 mutex_lock(&ioc4_mutex);
Brent Casavant22329b52005-06-21 17:15:59 -0700427 list_del(&idd->idd_list);
Jes Sorensen6e586f32006-01-17 12:24:39 -0500428 mutex_unlock(&ioc4_mutex);
Brent Casavant22329b52005-06-21 17:15:59 -0700429 kfree(idd);
430}
431
432static struct pci_device_id ioc4_id_table[] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700433 {PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC4, PCI_ANY_ID,
434 PCI_ANY_ID, 0x0b4000, 0xFFFFFF},
435 {0}
436};
Linus Torvalds1da177e2005-04-16 15:20:36 -0700437
Dave Jones85bd8432006-06-29 02:24:31 -0700438static struct pci_driver ioc4_driver = {
Brent Casavant22329b52005-06-21 17:15:59 -0700439 .name = "IOC4",
440 .id_table = ioc4_id_table,
441 .probe = ioc4_probe,
442 .remove = ioc4_remove,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700443};
444
Brent Casavant22329b52005-06-21 17:15:59 -0700445MODULE_DEVICE_TABLE(pci, ioc4_id_table);
446
447/*********************
448 * Module management *
449 *********************/
450
451/* Module load */
452static int __devinit
453ioc4_init(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700454{
Brent Casavant22329b52005-06-21 17:15:59 -0700455 return pci_register_driver(&ioc4_driver);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700456}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700457
Brent Casavant22329b52005-06-21 17:15:59 -0700458/* Module unload */
459static void __devexit
460ioc4_exit(void)
461{
462 pci_unregister_driver(&ioc4_driver);
463}
464
465module_init(ioc4_init);
466module_exit(ioc4_exit);
467
468MODULE_AUTHOR("Brent Casavant - Silicon Graphics, Inc. <bcasavan@sgi.com>");
469MODULE_DESCRIPTION("PCI driver master module for SGI IOC4 Base-IO Card");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700470MODULE_LICENSE("GPL");
Brent Casavant22329b52005-06-21 17:15:59 -0700471
472EXPORT_SYMBOL(ioc4_register_submodule);
473EXPORT_SYMBOL(ioc4_unregister_submodule);