Changeset 6da5a6b in mainline


Ignore:
Timestamp:
2016-11-25T17:34:33Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
47c1437
Parents:
2a72d9f
Message:

Make obio more standalone

The PBM (what is called obio in the obio driver) is always located at
0x1fe00000000. Also add code to clear OBIO interrupts.

File:
1 edited

Legend:

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

    r2a72d9f r6da5a6b  
    9494                switch (IPC_GET_IMETHOD(call)) {
    9595                case IRC_ENABLE_INTERRUPT:
    96                         /* Noop */
     96                        inr = IPC_GET_ARG1(call);
     97                        base_virt[OBIO_IMR(inr & INO_MASK)] |= (1UL << 31);
    9798                        async_answer_0(callid, EOK);
    9899                        break;
     
    116117static bool obio_init(void)
    117118{
    118         sysarg_t paddr;
    119        
    120         if (sysinfo_get_value("obio.base.physical", &paddr) != EOK) {
    121                 printf("%s: No OBIO registers found\n", NAME);
    122                 return false;
    123         }
    124        
    125         base_phys = (uintptr_t) paddr;
     119        base_phys = (uintptr_t) 0x1fe00000000ULL;
    126120       
    127121        int flags = AS_AREA_READ | AS_AREA_WRITE;
     
    135129        }
    136130       
    137         printf("%s: OBIO registers with base at %zu\n", NAME, base_phys);
     131        printf("%s: OBIO registers with base at %lx\n", NAME, base_phys);
    138132       
    139133        async_set_fallback_port_handler(obio_connection, NULL);
Note: See TracChangeset for help on using the changeset viewer.