Changes in / [7e1b130:b39eb79] in mainline


Ignore:
Files:
16 added
5 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/amd64/Makefile.inc

    r7e1b130 rb39eb79  
    3939        bus/pci/pciintel \
    4040        bus/isa \
     41        char/i8042 \
    4142        char/ns8250 \
     43        char/ps2mouse \
     44        char/xtkbd \
    4245        bus/usb/ehci\
    4346        bus/usb/ohci \
  • uspace/Makefile

    r7e1b130 rb39eb79  
    105105        drv/infrastructure/root \
    106106        drv/infrastructure/rootvirt \
     107        drv/char/i8042 \
     108        drv/char/ps2mouse \
     109        drv/char/xtkbd \
    107110        drv/test/test1 \
    108111        drv/test/test2 \
  • uspace/app/init/init.c

    r7e1b130 rb39eb79  
    302302        spawn("/srv/obio");
    303303        srv_start("/srv/cuda_adb");
    304         srv_start("/srv/i8042");
     304//      srv_start("/srv/i8042");
    305305        srv_start("/srv/s3c24ser");
    306306        srv_start("/srv/s3c24ts");
  • uspace/drv/bus/isa/isa.c

    r7e1b130 rb39eb79  
    5252#include <dirent.h>
    5353#include <fcntl.h>
     54#include <ipc/irc.h>
     55#include <ipc/services.h>
     56#include <sysinfo.h>
     57#include <ns.h>
    5458#include <sys/stat.h>
    5559#include <ipc/irc.h>
     
    109113        sysarg_t apic;
    110114        sysarg_t i8259;
    111        
     115
    112116        async_sess_t *irc_sess = NULL;
    113        
     117
    114118        if (((sysinfo_get_value("apic", &apic) == EOK) && (apic))
    115119            || ((sysinfo_get_value("i8259", &i8259) == EOK) && (i8259))) {
     
    117121                    SERVICE_IRC, 0, 0);
    118122        }
    119        
     123
    120124        if (!irc_sess)
    121125                return false;
    122        
     126
    123127        assert(isa_fun);
    124128        const hw_resource_list_t *res = &isa_fun->hw_resources;
     
    127131                if (res->resources[i].type == INTERRUPT) {
    128132                        const int irq = res->resources[i].res.interrupt.irq;
    129                        
     133
    130134                        async_exch_t *exch = async_exchange_begin(irc_sess);
    131135                        const int rc =
    132136                            async_req_1_0(exch, IRC_ENABLE_INTERRUPT, irq);
    133137                        async_exchange_end(exch);
    134                        
     138
    135139                        if (rc != EOK) {
    136140                                async_hangup(irc_sess);
     
    139143                }
    140144        }
    141        
     145
    142146        async_hangup(irc_sess);
    143147        return true;
     
    397401
    398402        val = skip_spaces(val);
    399         irq = (int)strtol(val, &end, 0x10);
     403        irq = (int)strtol(val, &end, 10);
    400404
    401405        if (val != end)
  • uspace/drv/bus/isa/isa.dev

    r7e1b130 rb39eb79  
    99        io_range 2f8 8
    1010
    11 keyboard:
    12         match 100 isa/keyboard
     11i8042:
     12        match 100 isa/i8042
    1313        irq 1
    14         io_range 060 10
     14        irq 12
     15        io_range 060 5
     16       
    1517
    1618ne2k:
Note: See TracChangeset for help on using the changeset viewer.