Changeset 1affcdf3 in mainline for uspace/srv/hw/irc/i8259/i8259.c


Ignore:
Timestamp:
2011-06-10T19:33:41Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1878386
Parents:
13ecdac9 (diff), 79a141a (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 changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/irc/i8259/i8259.c

    r13ecdac9 r1affcdf3  
    3838#include <ipc/services.h>
    3939#include <ipc/irc.h>
    40 #include <ipc/ns.h>
     40#include <ns.h>
    4141#include <sysinfo.h>
    4242#include <as.h>
     
    113113                callid = async_get_call(&call);
    114114               
     115                if (!IPC_GET_IMETHOD(call)) {
     116                        /* The other side has hung up. */
     117                        async_answer_0(callid, EOK);
     118                        return;
     119                }
     120               
    115121                switch (IPC_GET_IMETHOD(call)) {
    116122                case IRC_ENABLE_INTERRUPT:
     
    136142       
    137143        if ((sysinfo_get_value("i8259", &i8259) != EOK) || (!i8259)) {
    138                 printf(NAME ": No i8259 found\n");
     144                printf("%s: No i8259 found\n", NAME);
    139145                return false;
    140146        }
     
    144150            (pio_enable((void *) IO_RANGE1_START, IO_RANGE1_SIZE,
    145151            (void **) &io_range1) != EOK)) {
    146                 printf(NAME ": i8259 not accessible\n");
     152                printf("%s: i8259 not accessible\n", NAME);
    147153                return false;
    148154        }
     
    156162int main(int argc, char **argv)
    157163{
    158         printf(NAME ": HelenOS i8259 driver\n");
     164        printf("%s: HelenOS i8259 driver\n", NAME);
    159165       
    160166        if (!i8259_init())
    161167                return -1;
    162168       
    163         printf(NAME ": Accepting connections\n");
     169        printf("%s: Accepting connections\n", NAME);
     170        task_retval(0);
    164171        async_manager();
    165172       
Note: See TracChangeset for help on using the changeset viewer.