Cleanup in elf.c with .bss section clean; adm command mounts cdrom instead of floppy...
[ZeXOS.git] / kernel / drivers / bus / usb / usb.c
blob300669dd8fe492e77ed70b814d75a71ae704458a
1 /*
2 * ZeX/OS
3 * Copyright (C) 2008 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
4 * Copyright (C) 2009 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include <config.h>
21 #include <system.h>
22 #include <arch/io.h>
23 #include <string.h>
24 #include <stdio.h>
25 #include <pci.h>
26 #include "../drivers/bus/usb/usb.h"
28 void usb_controller_handler (void *r)
30 DPRINT (DBG_DRIVER | DBG_BUS, "USB -> INT\n");
33 unsigned usb_controller_register (pcidev_t *pcidev)
35 #ifdef CONFIG_DRV_USB
36 DPRINT (DBG_DRIVERĀ | DBG_BUS, "irq: %d\nbase: 0x%x\n", pcidev->u.h0.interrupt_line, pcidev->u.h0.base_registers[5]);
37 //irq_install_handler (pcidev->u.h0.interrupt_line, usb_controller_handler);
38 #endif
39 /*unsigned i;
40 for (i = 0; i < 6; i ++)
41 printf ("base addr: 0x%x\n", pcidev->u.h0.base_registers[i]);*/
43 return 1;