Changeset e2a6b72 in mainline for uspace/drv


Ignore:
Timestamp:
2012-10-15T16:28:58Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b3ab8f7
Parents:
7eb49f4 (diff), c4c2406 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline and io improvements.

Location:
uspace/drv
Files:
4 added
35 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/ahci/ahci.c

    r7eb49f4 re2a6b72  
    13401340{
    13411341        printf("%s: HelenOS AHCI device driver\n", NAME);
    1342         ddf_log_init(NAME, LVL_ERROR);
     1342        ddf_log_init(NAME);
    13431343        fibril_mutex_initialize(&sata_devices_count_lock);
    13441344        return ddf_driver_main(&ahci_driver);
  • uspace/drv/bus/isa/i8237.c

    r7eb49f4 re2a6b72  
    4040#include <fibril_synch.h>
    4141#include <ddi.h>
    42 #include <libarch/ddi.h>
    4342#include <ddf/log.h>
    4443#include "i8237.h"
  • uspace/drv/bus/isa/isa.c

    r7eb49f4 re2a6b72  
    712712static void isa_init()
    713713{
    714         ddf_log_init(NAME, LVL_ERROR);
     714        ddf_log_init(NAME);
    715715        isa_fun_ops.interfaces[HW_RES_DEV_IFACE] = &isa_fun_hw_res_ops;
    716716}
  • uspace/drv/bus/isa/isa.dev

    r7eb49f4 re2a6b72  
    2727        dma 1
    2828        dma 5
     29
     30cmos-rtc:
     31        match 100 isa/cmos-rtc
     32        io_range 70 2
  • uspace/drv/bus/pci/pciintel/pci.c

    r7eb49f4 re2a6b72  
    5858#include <device/hw_res.h>
    5959#include <ddi.h>
    60 #include <libarch/ddi.h>
    6160#include <pci_dev_iface.h>
    6261
     
    729728static void pciintel_init(void)
    730729{
    731         ddf_log_init(NAME, LVL_ERROR);
     730        ddf_log_init(NAME);
    732731        pci_fun_ops.interfaces[HW_RES_DEV_IFACE] = &pciintel_hw_res_ops;
    733732        pci_fun_ops.interfaces[PCI_DEV_IFACE] = &pci_dev_ops;
  • uspace/drv/bus/usb/ehci/main.c

    r7eb49f4 re2a6b72  
    132132int main(int argc, char *argv[])
    133133{
    134         usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
     134        log_init(NAME);
    135135        return ddf_driver_main(&ehci_driver);
    136136}
  • uspace/drv/bus/usb/ohci/main.c

    r7eb49f4 re2a6b72  
    8383int main(int argc, char *argv[])
    8484{
    85         usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
     85        log_init(NAME);
    8686        return ddf_driver_main(&ohci_driver);
    8787}
  • uspace/drv/bus/usb/uhci/hc.c

    r7eb49f4 re2a6b72  
    3535#include <str_error.h>
    3636#include <adt/list.h>
    37 #include <libarch/ddi.h>
     37#include <ddi.h>
    3838
    3939#include <usb/debug.h>
  • uspace/drv/bus/usb/uhci/hc.h

    r7eb49f4 re2a6b72  
    3737
    3838#include <fibril.h>
    39 #include <ddi.h>
    40 
    4139#include <usb/host/hcd.h>
    4240
  • uspace/drv/bus/usb/uhci/main.c

    r7eb49f4 re2a6b72  
    8787{
    8888        printf(NAME ": HelenOS UHCI driver.\n");
    89         usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
     89        log_init(NAME);
    9090
    9191        return ddf_driver_main(&uhci_driver);
  • uspace/drv/bus/usb/uhcirh/main.c

    r7eb49f4 re2a6b72  
    7373{
    7474        printf(NAME ": HelenOS UHCI root hub driver.\n");
    75         usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
     75        log_init(NAME);
    7676        return ddf_driver_main(&uhci_rh_driver);
    7777}
  • uspace/drv/bus/usb/uhcirh/port.c

    r7eb49f4 re2a6b72  
    3232 * @brief UHCI root hub port routines
    3333 */
    34 #include <libarch/ddi.h>  /* pio_read and pio_write */
     34#include <ddi.h>
    3535#include <fibril_synch.h> /* async_usleep */
    3636#include <errno.h>
  • uspace/drv/bus/usb/usbflbk/main.c

    r7eb49f4 re2a6b72  
    110110int main(int argc, char *argv[])
    111111{
    112         usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
     112        log_init(NAME);
    113113
    114114        return usb_driver_main(&usbfallback_driver);
  • uspace/drv/bus/usb/usbhid/main.c

    r7eb49f4 re2a6b72  
    172172        printf(NAME ": HelenOS USB HID driver.\n");
    173173
    174         usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
     174        log_init(NAME);
    175175
    176176        return usb_driver_main(&usb_hid_driver);
  • uspace/drv/bus/usb/usbhub/main.c

    r7eb49f4 re2a6b72  
    7979{
    8080        printf(NAME ": HelenOS USB hub driver.\n");
    81         usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
     81        log_init(NAME);
    8282
    8383        return usb_driver_main(&usb_hub_driver);
  • uspace/drv/bus/usb/usbmast/main.c

    r7eb49f4 re2a6b72  
    383383int main(int argc, char *argv[])
    384384{
    385         usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
     385        log_init(NAME);
    386386
    387387        return usb_driver_main(&usbmast_driver);
  • uspace/drv/bus/usb/usbmid/main.c

    r7eb49f4 re2a6b72  
    180180        printf(NAME ": USB multi interface device driver.\n");
    181181
    182         usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
     182        log_init(NAME);
    183183
    184184        return usb_driver_main(&mid_driver);
  • uspace/drv/bus/usb/vhc/Makefile

    r7eb49f4 re2a6b72  
    3232        $(LIBUSBDEV_PREFIX)/libusbdev.a \
    3333        $(LIBUSBHOST_PREFIX)/libusbhost.a \
     34        $(LIBUSBVIRT_PREFIX)/libusbvirt.a \
    3435        $(LIBUSB_PREFIX)/libusb.a \
    35         $(LIBUSBVIRT_PREFIX)/libusbvirt.a \
    3636        $(LIBDRV_PREFIX)/libdrv.a
    3737
  • uspace/drv/bus/usb/vhc/main.c

    r7eb49f4 re2a6b72  
    138138int main(int argc, char * argv[])
    139139{       
    140         usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
     140        log_init(NAME);
    141141
    142142        printf(NAME ": virtual USB host controller driver.\n");
  • uspace/drv/char/i8042/i8042.c

    r7eb49f4 re2a6b72  
    4141#include <device/hw_res.h>
    4242#include <ddi.h>
    43 #include <libarch/ddi.h>
    4443#include <errno.h>
    4544#include <str_error.h>
     
    302301        const bool enabled = hw_res_enable_interrupt(parent_sess);
    303302        if (!enabled) {
    304                 log_msg(LVL_ERROR, "Failed to enable interrupts: %s.",
     303                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed to enable interrupts: %s.",
    305304                    ddf_dev_get_name(ddf_dev));
    306305                rc = EIO;
  • uspace/drv/char/i8042/main.c

    r7eb49f4 re2a6b72  
    151151{
    152152        printf("%s: HelenOS PS/2 driver.\n", NAME);
    153         ddf_log_init(NAME, LVL_NOTE);
     153        ddf_log_init(NAME);
    154154        return ddf_driver_main(&i8042_driver);
    155155}
  • uspace/drv/char/ns8250/ns8250.c

    r7eb49f4 re2a6b72  
    5151#include <sys/stat.h>
    5252#include <ddi.h>
    53 #include <libarch/ddi.h>
    5453
    5554#include <ddf/driver.h>
     
    10841083static void ns8250_init(void)
    10851084{
    1086         ddf_log_init(NAME, LVL_WARN);
     1085        ddf_log_init(NAME);
    10871086       
    10881087        ns8250_dev_ops.open = &ns8250_open;
  • uspace/drv/char/ps2mouse/main.c

    r7eb49f4 re2a6b72  
    6969{
    7070        printf(NAME ": HelenOS ps/2 mouse driver.\n");
    71         ddf_log_init(NAME, LVL_NOTE);
     71        ddf_log_init(NAME);
    7272        return ddf_driver_main(&mouse_driver);
    7373}
  • uspace/drv/char/xtkbd/main.c

    r7eb49f4 re2a6b72  
    6969{
    7070        printf(NAME ": HelenOS XT keyboard driver.\n");
    71         ddf_log_init(NAME, LVL_NOTE);
     71        ddf_log_init(NAME);
    7272        return ddf_driver_main(&kbd_driver);
    7373}
  • uspace/drv/infrastructure/root/root.c

    r7eb49f4 re2a6b72  
    237237        printf(NAME ": HelenOS root device driver\n");
    238238
    239         ddf_log_init(NAME, LVL_ERROR);
     239        ddf_log_init(NAME);
    240240        return ddf_driver_main(&root_driver);
    241241}
  • uspace/drv/infrastructure/rootmac/rootmac.c

    r7eb49f4 re2a6b72  
    179179{
    180180        printf("%s: HelenOS Mac platform driver\n", NAME);
    181         ddf_log_init(NAME, LVL_ERROR);
     181        ddf_log_init(NAME);
    182182        rootmac_fun_ops.interfaces[HW_RES_DEV_IFACE] = &fun_hw_res_ops;
    183183        return ddf_driver_main(&rootmac_driver);
  • uspace/drv/infrastructure/rootpc/rootpc.c

    r7eb49f4 re2a6b72  
    195195static void root_pc_init(void)
    196196{
    197         ddf_log_init(NAME, LVL_ERROR);
     197        ddf_log_init(NAME);
    198198        rootpc_fun_ops.interfaces[HW_RES_DEV_IFACE] = &fun_hw_res_ops;
    199199}
  • uspace/drv/infrastructure/rootvirt/rootvirt.c

    r7eb49f4 re2a6b72  
    240240        printf(NAME ": HelenOS virtual devices root driver\n");
    241241
    242         ddf_log_init(NAME, LVL_ERROR);
     242        ddf_log_init(NAME);
    243243        return ddf_driver_main(&rootvirt_driver);
    244244}
  • uspace/drv/nic/e1k/e1k.c

    r7eb49f4 re2a6b72  
    4545#include <ipc/irc.h>
    4646#include <ipc/ns.h>
    47 #include <libarch/ddi.h>
     47#include <ddi.h>
    4848#include <as.h>
    4949#include <ddf/log.h>
     
    23812381            &e1000_nic_iface);
    23822382       
    2383         ddf_log_init(NAME, LVL_ERROR);
     2383        ddf_log_init(NAME);
    23842384        ddf_msg(LVL_NOTE, "HelenOS E1000 driver started");
    23852385        return ddf_driver_main(&e1000_driver);
  • uspace/drv/nic/ne2k/dp8390.c

    r7eb49f4 re2a6b72  
    5858#include <errno.h>
    5959#include <stdio.h>
    60 #include <libarch/ddi.h>
     60#include <ddi.h>
    6161#include "dp8390.h"
    6262
  • uspace/drv/nic/rtl8139/defs.h

    r7eb49f4 re2a6b72  
    3737
    3838#include <sys/types.h>
    39 #include <libarch/ddi.h>
     39#include <ddi.h>
    4040
    4141/** Size of RTL8139 registers address space */
  • uspace/drv/nic/rtl8139/driver.c

    r7eb49f4 re2a6b72  
    3434#include <align.h>
    3535#include <byteorder.h>
    36 #include <libarch/ddi.h>
    3736#include <libarch/barrier.h>
    3837
     
    21872186                &rtl8139_driver_ops, &rtl8139_dev_ops, &rtl8139_nic_iface);
    21882187
    2189         ddf_log_init(NAME, LVL_ERROR);
     2188        ddf_log_init(NAME);
    21902189        ddf_msg(LVL_NOTE, "HelenOS RTL8139 driver started");
    21912190        return ddf_driver_main(&rtl8139_driver);
  • uspace/drv/test/test1/test1.c

    r7eb49f4 re2a6b72  
    306306{
    307307        printf(NAME ": HelenOS test1 virtual device driver\n");
    308         ddf_log_init(NAME, LVL_ERROR);
     308        ddf_log_init(NAME);
    309309        return ddf_driver_main(&test1_driver);
    310310}
  • uspace/drv/test/test2/test2.c

    r7eb49f4 re2a6b72  
    308308{
    309309        printf(NAME ": HelenOS test2 virtual device driver\n");
    310         ddf_log_init(NAME, LVL_NOTE);
     310        ddf_log_init(NAME);
    311311        return ddf_driver_main(&test2_driver);
    312312}
  • uspace/drv/test/test3/test3.c

    r7eb49f4 re2a6b72  
    193193{
    194194        printf(NAME ": HelenOS test3 virtual device driver\n");
    195         ddf_log_init(NAME, LVL_ERROR);
     195        ddf_log_init(NAME);
    196196        return ddf_driver_main(&test3_driver);
    197197}
Note: See TracChangeset for help on using the changeset viewer.