source: mainline/uspace/drv/bus/isa/isa.c@ 0195374

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 0195374 was 7e9e652, checked in by Jakub Jermar <jakub@…>, 9 years ago

Detect the default ISA bridge by its PCI class and subclass

  • Property mode set to 100644
File size: 16.9 KB
Line 
1/*
2 * Copyright (c) 2010 Lenka Trochtova
3 * Copyright (c) 2011 Jiri Svoboda
4 * Copyright (c) 2011 Jan Vesely
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 *
11 * - Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * - Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * - The name of the author may not be used to endorse or promote products
17 * derived from this software without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31/**
32 * @defgroup isa ISA bus driver.
33 * @brief HelenOS ISA bus driver.
34 * @{
35 */
36
37/** @file
38 */
39
40#include <adt/list.h>
41#include <assert.h>
42#include <stdio.h>
43#include <errno.h>
44#include <stdbool.h>
45#include <fibril_synch.h>
46#include <stdlib.h>
47#include <str.h>
48#include <str_error.h>
49#include <ctype.h>
50#include <macros.h>
51#include <malloc.h>
52#include <dirent.h>
53#include <fcntl.h>
54#include <ipc/irc.h>
55#include <ipc/services.h>
56#include <sys/stat.h>
57#include <irc.h>
58#include <ns.h>
59
60#include <ddf/driver.h>
61#include <ddf/log.h>
62#include <ops/hw_res.h>
63#include <ops/pio_window.h>
64
65#include <device/hw_res.h>
66#include <device/pio_window.h>
67
68#include <pci_dev_iface.h>
69
70#include "i8237.h"
71
72#define NAME "isa"
73#define ISA_CHILD_FUN_CONF_PATH "/drv/isa/isa.dev"
74#define EBUS_CHILD_FUN_CONF_PATH "/drv/isa/ebus.dev"
75
76#define ISA_MAX_HW_RES 5
77
78typedef struct {
79 fibril_mutex_t mutex;
80 uint16_t pci_vendor_id;
81 uint16_t pci_device_id;
82 uint8_t pci_class;
83 uint8_t pci_subclass;
84 ddf_dev_t *dev;
85 ddf_fun_t *fctl;
86 pio_window_t pio_win;
87 list_t functions;
88} isa_bus_t;
89
90typedef struct isa_fun {
91 fibril_mutex_t mutex;
92 ddf_fun_t *fnode;
93 hw_resource_t resources[ISA_MAX_HW_RES];
94 hw_resource_list_t hw_resources;
95 link_t bus_link;
96} isa_fun_t;
97
98/** Obtain soft-state from device node */
99static isa_bus_t *isa_bus(ddf_dev_t *dev)
100{
101 return ddf_dev_data_get(dev);
102}
103
104/** Obtain soft-state from function node */
105static isa_fun_t *isa_fun(ddf_fun_t *fun)
106{
107 return ddf_fun_data_get(fun);
108}
109
110static hw_resource_list_t *isa_fun_get_resources(ddf_fun_t *fnode)
111{
112 isa_fun_t *fun = isa_fun(fnode);
113 assert(fun);
114
115 return &fun->hw_resources;
116}
117
118static bool isa_fun_enable_interrupt(ddf_fun_t *fnode)
119{
120 /* This is an old ugly way, copied from pci driver */
121 assert(fnode);
122 isa_fun_t *fun = isa_fun(fnode);
123 assert(fun);
124
125 const hw_resource_list_t *res = &fun->hw_resources;
126 assert(res);
127 for (size_t i = 0; i < res->count; ++i) {
128 if (res->resources[i].type == INTERRUPT) {
129 int rc = irc_enable_interrupt(
130 res->resources[i].res.interrupt.irq);
131
132 if (rc != EOK)
133 return false;
134 }
135 }
136
137 return true;
138}
139
140static int isa_fun_setup_dma(ddf_fun_t *fnode,
141 unsigned int channel, uint32_t pa, uint32_t size, uint8_t mode)
142{
143 assert(fnode);
144 isa_fun_t *fun = isa_fun(fnode);
145 assert(fun);
146 const hw_resource_list_t *res = &fun->hw_resources;
147 assert(res);
148
149 for (size_t i = 0; i < res->count; ++i) {
150 /* Check for assigned channel */
151 if (((res->resources[i].type == DMA_CHANNEL_16) &&
152 (res->resources[i].res.dma_channel.dma16 == channel)) ||
153 ((res->resources[i].type == DMA_CHANNEL_8) &&
154 (res->resources[i].res.dma_channel.dma8 == channel))) {
155 return dma_channel_setup(channel, pa, size, mode);
156 }
157 }
158
159 return EINVAL;
160}
161
162static int isa_fun_remain_dma(ddf_fun_t *fnode,
163 unsigned channel, size_t *size)
164{
165 assert(size);
166 assert(fnode);
167 isa_fun_t *fun = isa_fun(fnode);
168 assert(fun);
169 const hw_resource_list_t *res = &fun->hw_resources;
170 assert(res);
171
172 for (size_t i = 0; i < res->count; ++i) {
173 /* Check for assigned channel */
174 if (((res->resources[i].type == DMA_CHANNEL_16) &&
175 (res->resources[i].res.dma_channel.dma16 == channel)) ||
176 ((res->resources[i].type == DMA_CHANNEL_8) &&
177 (res->resources[i].res.dma_channel.dma8 == channel))) {
178 return dma_channel_remain(channel, size);
179 }
180 }
181
182 return EINVAL;
183}
184
185static hw_res_ops_t isa_fun_hw_res_ops = {
186 .get_resource_list = isa_fun_get_resources,
187 .enable_interrupt = isa_fun_enable_interrupt,
188 .dma_channel_setup = isa_fun_setup_dma,
189 .dma_channel_remain = isa_fun_remain_dma,
190};
191
192static pio_window_t *isa_fun_get_pio_window(ddf_fun_t *fnode)
193{
194 ddf_dev_t *dev = ddf_fun_get_dev(fnode);
195 isa_bus_t *isa = isa_bus(dev);
196 assert(isa);
197
198 return &isa->pio_win;
199}
200
201static pio_window_ops_t isa_fun_pio_window_ops = {
202 .get_pio_window = isa_fun_get_pio_window
203};
204
205static ddf_dev_ops_t isa_fun_ops= {
206 .interfaces[HW_RES_DEV_IFACE] = &isa_fun_hw_res_ops,
207 .interfaces[PIO_WINDOW_DEV_IFACE] = &isa_fun_pio_window_ops,
208};
209
210static int isa_dev_add(ddf_dev_t *dev);
211static int isa_dev_remove(ddf_dev_t *dev);
212static int isa_fun_online(ddf_fun_t *fun);
213static int isa_fun_offline(ddf_fun_t *fun);
214
215/** The isa device driver's standard operations */
216static driver_ops_t isa_ops = {
217 .dev_add = &isa_dev_add,
218 .dev_remove = &isa_dev_remove,
219 .fun_online = &isa_fun_online,
220 .fun_offline = &isa_fun_offline
221};
222
223/** The isa device driver structure. */
224static driver_t isa_driver = {
225 .name = NAME,
226 .driver_ops = &isa_ops
227};
228
229static isa_fun_t *isa_fun_create(isa_bus_t *isa, const char *name)
230{
231 ddf_fun_t *fnode = ddf_fun_create(isa->dev, fun_inner, name);
232 if (fnode == NULL)
233 return NULL;
234
235 isa_fun_t *fun = ddf_fun_data_alloc(fnode, sizeof(isa_fun_t));
236 if (fun == NULL) {
237 ddf_fun_destroy(fnode);
238 return NULL;
239 }
240
241 fibril_mutex_initialize(&fun->mutex);
242 fun->hw_resources.resources = fun->resources;
243
244 fun->fnode = fnode;
245 return fun;
246}
247
248static char *fun_conf_read(const char *conf_path)
249{
250 bool suc = false;
251 char *buf = NULL;
252 bool opened = false;
253 int fd;
254 size_t len;
255 ssize_t r;
256
257 fd = open(conf_path, O_RDONLY);
258 if (fd < 0) {
259 ddf_msg(LVL_ERROR, "Unable to open %s", conf_path);
260 goto cleanup;
261 }
262
263 opened = true;
264
265 len = lseek(fd, 0, SEEK_END);
266 lseek(fd, 0, SEEK_SET);
267 if (len == 0) {
268 ddf_msg(LVL_ERROR, "Configuration file '%s' is empty.",
269 conf_path);
270 goto cleanup;
271 }
272
273 buf = malloc(len + 1);
274 if (buf == NULL) {
275 ddf_msg(LVL_ERROR, "Memory allocation failed.");
276 goto cleanup;
277 }
278
279 r = read(fd, buf, len);
280 if (r < 0) {
281 ddf_msg(LVL_ERROR, "Unable to read file '%s'.", conf_path);
282 goto cleanup;
283 }
284
285 buf[len] = 0;
286
287 suc = true;
288
289cleanup:
290 if (!suc && buf != NULL) {
291 free(buf);
292 buf = NULL;
293 }
294
295 if (opened)
296 close(fd);
297
298 return buf;
299}
300
301static char *str_get_line(char *str, char **next)
302{
303 char *line = str;
304 *next = NULL;
305
306 if (str == NULL) {
307 return NULL;
308 }
309
310 while (*str != '\0' && *str != '\n') {
311 str++;
312 }
313
314 if (*str != '\0') {
315 *next = str + 1;
316 }
317
318 *str = '\0';
319 return line;
320}
321
322static bool line_empty(const char *line)
323{
324 while (line != NULL && *line != 0) {
325 if (!isspace(*line))
326 return false;
327 line++;
328 }
329
330 return true;
331}
332
333static char *get_device_name(char *line)
334{
335 /* Skip leading spaces. */
336 while (*line != '\0' && isspace(*line)) {
337 line++;
338 }
339
340 /* Get the name part of the rest of the line. */
341 str_tok(line, ":", NULL);
342 return line;
343}
344
345static inline const char *skip_spaces(const char *line)
346{
347 /* Skip leading spaces. */
348 while (*line != '\0' && isspace(*line))
349 line++;
350
351 return line;
352}
353
354static void isa_fun_add_irq(isa_fun_t *fun, int irq)
355{
356 size_t count = fun->hw_resources.count;
357 hw_resource_t *resources = fun->hw_resources.resources;
358
359 if (count < ISA_MAX_HW_RES) {
360 resources[count].type = INTERRUPT;
361 resources[count].res.interrupt.irq = irq;
362
363 fun->hw_resources.count++;
364
365 ddf_msg(LVL_NOTE, "Added irq 0x%x to function %s", irq,
366 ddf_fun_get_name(fun->fnode));
367 }
368}
369
370static void isa_fun_add_dma(isa_fun_t *fun, int dma)
371{
372 size_t count = fun->hw_resources.count;
373 hw_resource_t *resources = fun->hw_resources.resources;
374
375 if (count < ISA_MAX_HW_RES) {
376 if ((dma > 0) && (dma < 4)) {
377 resources[count].type = DMA_CHANNEL_8;
378 resources[count].res.dma_channel.dma8 = dma;
379
380 fun->hw_resources.count++;
381 ddf_msg(LVL_NOTE, "Added dma 0x%x to function %s", dma,
382 ddf_fun_get_name(fun->fnode));
383
384 return;
385 }
386
387 if ((dma > 4) && (dma < 8)) {
388 resources[count].type = DMA_CHANNEL_16;
389 resources[count].res.dma_channel.dma16 = dma;
390
391 fun->hw_resources.count++;
392 ddf_msg(LVL_NOTE, "Added dma 0x%x to function %s", dma,
393 ddf_fun_get_name(fun->fnode));
394
395 return;
396 }
397
398 ddf_msg(LVL_WARN, "Skipped dma 0x%x for function %s", dma,
399 ddf_fun_get_name(fun->fnode));
400 }
401}
402
403static void isa_fun_add_io_range(isa_fun_t *fun, size_t addr, size_t len)
404{
405 size_t count = fun->hw_resources.count;
406 hw_resource_t *resources = fun->hw_resources.resources;
407
408 isa_bus_t *isa = isa_bus(ddf_fun_get_dev(fun->fnode));
409
410 if (count < ISA_MAX_HW_RES) {
411 resources[count].type = IO_RANGE;
412 resources[count].res.io_range.address = addr;
413 resources[count].res.io_range.address += isa->pio_win.io.base;
414 resources[count].res.io_range.size = len;
415 resources[count].res.io_range.relative = false;
416 resources[count].res.io_range.endianness = LITTLE_ENDIAN;
417
418 fun->hw_resources.count++;
419
420 ddf_msg(LVL_NOTE, "Added io range (addr=0x%x, size=0x%x) to "
421 "function %s", (unsigned int) addr, (unsigned int) len,
422 ddf_fun_get_name(fun->fnode));
423 }
424}
425
426static void fun_parse_irq(isa_fun_t *fun, const char *val)
427{
428 int irq = 0;
429 char *end = NULL;
430
431 val = skip_spaces(val);
432 irq = (int) strtol(val, &end, 10);
433
434 if (val != end)
435 isa_fun_add_irq(fun, irq);
436}
437
438static void fun_parse_dma(isa_fun_t *fun, const char *val)
439{
440 char *end = NULL;
441
442 val = skip_spaces(val);
443 const int dma = strtol(val, &end, 10);
444
445 if (val != end)
446 isa_fun_add_dma(fun, dma);
447}
448
449static void fun_parse_io_range(isa_fun_t *fun, const char *val)
450{
451 size_t addr, len;
452 char *end = NULL;
453
454 val = skip_spaces(val);
455 addr = strtol(val, &end, 0x10);
456
457 if (val == end)
458 return;
459
460 val = skip_spaces(end);
461 len = strtol(val, &end, 0x10);
462
463 if (val == end)
464 return;
465
466 isa_fun_add_io_range(fun, addr, len);
467}
468
469static void get_match_id(char **id, const char *val)
470{
471 const char *end = val;
472
473 while (!isspace(*end))
474 end++;
475
476 size_t size = end - val + 1;
477 *id = (char *)malloc(size);
478 str_cpy(*id, size, val);
479}
480
481static void fun_parse_match_id(isa_fun_t *fun, const char *val)
482{
483 char *id = NULL;
484 char *end = NULL;
485
486 val = skip_spaces(val);
487
488 int score = (int)strtol(val, &end, 10);
489 if (val == end) {
490 ddf_msg(LVL_ERROR, "Cannot read match score for function "
491 "%s.", ddf_fun_get_name(fun->fnode));
492 return;
493 }
494
495 val = skip_spaces(end);
496 get_match_id(&id, val);
497 if (id == NULL) {
498 ddf_msg(LVL_ERROR, "Cannot read match ID for function %s.",
499 ddf_fun_get_name(fun->fnode));
500 return;
501 }
502
503 ddf_msg(LVL_DEBUG, "Adding match id '%s' with score %d to "
504 "function %s", id, score, ddf_fun_get_name(fun->fnode));
505
506 int rc = ddf_fun_add_match_id(fun->fnode, id, score);
507 if (rc != EOK) {
508 ddf_msg(LVL_ERROR, "Failed adding match ID: %s",
509 str_error(rc));
510 }
511
512 free(id);
513}
514
515static bool prop_parse(isa_fun_t *fun, const char *line, const char *prop,
516 void (*read_fn)(isa_fun_t *, const char *))
517{
518 size_t proplen = str_size(prop);
519
520 if (str_lcmp(line, prop, proplen) == 0) {
521 line += proplen;
522 line = skip_spaces(line);
523 (*read_fn)(fun, line);
524
525 return true;
526 }
527
528 return false;
529}
530
531static void fun_prop_parse(isa_fun_t *fun, const char *line)
532{
533 /* Skip leading spaces. */
534 line = skip_spaces(line);
535
536 if (!prop_parse(fun, line, "io_range", &fun_parse_io_range) &&
537 !prop_parse(fun, line, "irq", &fun_parse_irq) &&
538 !prop_parse(fun, line, "dma", &fun_parse_dma) &&
539 !prop_parse(fun, line, "match", &fun_parse_match_id)) {
540
541 ddf_msg(LVL_ERROR, "Undefined device property at line '%s'",
542 line);
543 }
544}
545
546static char *isa_fun_read_info(char *fun_conf, isa_bus_t *isa)
547{
548 char *line;
549
550 /* Skip empty lines. */
551 do {
552 line = str_get_line(fun_conf, &fun_conf);
553
554 if (line == NULL) {
555 /* no more lines */
556 return NULL;
557 }
558
559 } while (line_empty(line));
560
561 /* Get device name. */
562 const char *fun_name = get_device_name(line);
563 if (fun_name == NULL)
564 return NULL;
565
566 isa_fun_t *fun = isa_fun_create(isa, fun_name);
567 if (fun == NULL) {
568 return NULL;
569 }
570
571 /* Get properties of the device (match ids, irq and io range). */
572 while (true) {
573 line = str_get_line(fun_conf, &fun_conf);
574
575 if (line_empty(line)) {
576 /* no more device properties */
577 break;
578 }
579
580 /*
581 * Get the device's property from the configuration line
582 * and store it in the device structure.
583 */
584 fun_prop_parse(fun, line);
585 }
586
587 /* Set device operations to the device. */
588 ddf_fun_set_ops(fun->fnode, &isa_fun_ops);
589
590 ddf_msg(LVL_DEBUG, "Binding function %s.", ddf_fun_get_name(fun->fnode));
591
592 /* XXX Handle error */
593 (void) ddf_fun_bind(fun->fnode);
594
595 list_append(&fun->bus_link, &isa->functions);
596
597 return fun_conf;
598}
599
600static void isa_functions_add(isa_bus_t *isa)
601{
602#define BASE_CLASS_BRIDGE 0x06
603#define SUB_CLASS_BRIDGE_ISA 0x01
604 bool isa_bridge = ((isa->pci_class == BASE_CLASS_BRIDGE) &&
605 (isa->pci_subclass == SUB_CLASS_BRIDGE_ISA));
606
607#define VENDOR_ID_SUN 0x108e
608#define DEVICE_ID_EBUS 0x1000
609 bool ebus = ((isa->pci_vendor_id == VENDOR_ID_SUN) &&
610 (isa->pci_device_id == DEVICE_ID_EBUS));
611
612 const char *conf_path = NULL;
613 if (isa_bridge)
614 conf_path = ISA_CHILD_FUN_CONF_PATH;
615 else if (ebus)
616 conf_path = EBUS_CHILD_FUN_CONF_PATH;
617
618 char *conf = fun_conf_read(conf_path);
619 while (conf != NULL && *conf != '\0') {
620 conf = isa_fun_read_info(conf, isa);
621 }
622 free(conf);
623}
624
625static int isa_dev_add(ddf_dev_t *dev)
626{
627 async_sess_t *sess;
628 int rc;
629
630 ddf_msg(LVL_DEBUG, "isa_dev_add, device handle = %d",
631 (int) ddf_dev_get_handle(dev));
632
633 isa_bus_t *isa = ddf_dev_data_alloc(dev, sizeof(isa_bus_t));
634 if (isa == NULL)
635 return ENOMEM;
636
637 fibril_mutex_initialize(&isa->mutex);
638 isa->dev = dev;
639 list_initialize(&isa->functions);
640
641 sess = ddf_dev_parent_sess_create(dev);
642 if (sess == NULL) {
643 ddf_msg(LVL_ERROR, "isa_dev_add failed to connect to the "
644 "parent driver.");
645 return ENOENT;
646 }
647
648 rc = pci_config_space_read_16(sess, PCI_VENDOR_ID, &isa->pci_vendor_id);
649 if (rc != EOK)
650 return rc;
651 rc = pci_config_space_read_16(sess, PCI_DEVICE_ID, &isa->pci_device_id);
652 if (rc != EOK)
653 return rc;
654 rc = pci_config_space_read_8(sess, PCI_BASE_CLASS, &isa->pci_class);
655 if (rc != EOK)
656 return rc;
657 rc = pci_config_space_read_8(sess, PCI_SUB_CLASS, &isa->pci_subclass);
658 if (rc != EOK)
659 return rc;
660
661 rc = pio_window_get(sess, &isa->pio_win);
662 if (rc != EOK) {
663 ddf_msg(LVL_ERROR, "isa_dev_add failed to get PIO window "
664 "for the device.");
665 return rc;
666 }
667
668 /* Make the bus device more visible. Does not do anything. */
669 ddf_msg(LVL_DEBUG, "Adding a 'ctl' function");
670
671 fibril_mutex_lock(&isa->mutex);
672
673 isa->fctl = ddf_fun_create(dev, fun_exposed, "ctl");
674 if (isa->fctl == NULL) {
675 ddf_msg(LVL_ERROR, "Failed creating control function.");
676 return EXDEV;
677 }
678
679 if (ddf_fun_bind(isa->fctl) != EOK) {
680 ddf_fun_destroy(isa->fctl);
681 ddf_msg(LVL_ERROR, "Failed binding control function.");
682 return EXDEV;
683 }
684
685 /* Add functions as specified in the configuration file. */
686 isa_functions_add(isa);
687 ddf_msg(LVL_NOTE, "Finished enumerating legacy functions");
688
689 fibril_mutex_unlock(&isa->mutex);
690
691 return EOK;
692}
693
694static int isa_dev_remove(ddf_dev_t *dev)
695{
696 isa_bus_t *isa = isa_bus(dev);
697
698 fibril_mutex_lock(&isa->mutex);
699
700 while (!list_empty(&isa->functions)) {
701 isa_fun_t *fun = list_get_instance(list_first(&isa->functions),
702 isa_fun_t, bus_link);
703
704 int rc = ddf_fun_offline(fun->fnode);
705 if (rc != EOK) {
706 fibril_mutex_unlock(&isa->mutex);
707 ddf_msg(LVL_ERROR, "Failed offlining %s", ddf_fun_get_name(fun->fnode));
708 return rc;
709 }
710
711 rc = ddf_fun_unbind(fun->fnode);
712 if (rc != EOK) {
713 fibril_mutex_unlock(&isa->mutex);
714 ddf_msg(LVL_ERROR, "Failed unbinding %s", ddf_fun_get_name(fun->fnode));
715 return rc;
716 }
717
718 list_remove(&fun->bus_link);
719
720 ddf_fun_destroy(fun->fnode);
721 }
722
723 if (ddf_fun_unbind(isa->fctl) != EOK) {
724 fibril_mutex_unlock(&isa->mutex);
725 ddf_msg(LVL_ERROR, "Failed unbinding control function.");
726 return EXDEV;
727 }
728
729 fibril_mutex_unlock(&isa->mutex);
730
731 return EOK;
732}
733
734static int isa_fun_online(ddf_fun_t *fun)
735{
736 ddf_msg(LVL_DEBUG, "isa_fun_online()");
737 return ddf_fun_online(fun);
738}
739
740static int isa_fun_offline(ddf_fun_t *fun)
741{
742 ddf_msg(LVL_DEBUG, "isa_fun_offline()");
743 return ddf_fun_offline(fun);
744}
745
746int main(int argc, char *argv[])
747{
748 printf(NAME ": HelenOS ISA bus driver\n");
749 ddf_log_init(NAME);
750 return ddf_driver_main(&isa_driver);
751}
752
753/**
754 * @}
755 */
Note: See TracBrowser for help on using the repository browser.