Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 3a2f8aa in mainline


Ignore:
Timestamp:
2010-01-31T12:41:45Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
b73c26d
Parents:
e7aa9f4
Message:

ADB driver for userspace, ADB keyboard support.

Files:
6 added
14 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/ppc32/loader/Makefile.common

    re7aa9f4 r3a2f8aa  
    4343KERNELDIR = ../../../../kernel
    4444USPACEDIR = ../../../../uspace
     45
     46RD_SRVS += $(USPACEDIR)/srv/hw/bus/cuda_adb/cuda_adb
  • kernel/arch/abs32le/src/abs32le.c

    re7aa9f4 r3a2f8aa  
    102102}
    103103
     104void irq_initialize_arch(irq_t *irq)
     105{
     106        (void) irq;
     107}
     108
    104109/** @}
    105110 */
  • kernel/arch/amd64/src/amd64.c

    re7aa9f4 r3a2f8aa  
    278278}
    279279
     280void irq_initialize_arch(irq_t *irq)
     281{
     282        (void) irq;
     283}
     284
    280285/** @}
    281286 */
  • kernel/arch/arm32/src/arm32.c

    re7aa9f4 r3a2f8aa  
    179179}
    180180
     181void irq_initialize_arch(irq_t *irq)
     182{
     183        (void) irq;
     184}
     185
    181186/** @}
    182187 */
  • kernel/arch/ia32/src/ia32.c

    re7aa9f4 r3a2f8aa  
    234234}
    235235
     236void irq_initialize_arch(irq_t *irq)
     237{
     238        (void) irq;
     239}
     240
    236241/** @}
    237242 */
  • kernel/arch/ia64/src/ia64.c

    re7aa9f4 r3a2f8aa  
    4444#include <arch/stack.h>
    4545#include <arch/mm/page.h>
     46#include <interrupt.h>
    4647#include <mm/as.h>
    4748#include <config.h>
     
    280281}
    281282
     283void irq_initialize_arch(irq_t *irq)
     284{
     285        (void) irq;
     286}
     287
    282288/** @}
    283289 */
  • kernel/arch/mips32/src/mips32.c

    re7aa9f4 r3a2f8aa  
    4646#include <sysinfo/sysinfo.h>
    4747#include <arch/interrupt.h>
     48#include <interrupt.h>
    4849#include <console/chardev.h>
    4950#include <arch/barrier.h>
     
    257258}
    258259
     260void irq_initialize_arch(irq_t *irq)
     261{
     262        (void) irq;
     263}
     264
    259265/** @}
    260266 */
  • kernel/arch/ppc32/src/ppc32.c

    re7aa9f4 r3a2f8aa  
    3939#include <genarch/kbrd/kbrd.h>
    4040#include <arch/interrupt.h>
     41#include <interrupt.h>
    4142#include <genarch/fb/fb.h>
    4243#include <genarch/fb/visuals.h>
     
    4748#include <proc/uarg.h>
    4849#include <console/console.h>
     50#include <sysinfo/sysinfo.h>
    4951#include <ddi/irq.h>
    5052#include <arch/drivers/pic.h>
     
    5860
    5961bootinfo_t bootinfo;
     62
     63static cir_t pic_cir;
     64static void *pic_cir_arg;
    6065
    6166/** Performs ppc32-specific initialization before main_bsp() is called. */
     
    186191        if (assigned_address) {
    187192                /* Initialize PIC */
    188                 cir_t cir;
    189                 void *cir_arg;
    190                 pic_init(assigned_address[0].addr, PAGE_SIZE, &cir, &cir_arg);
    191                
     193                pic_init(assigned_address[0].addr, PAGE_SIZE, &pic_cir,
     194                    &pic_cir_arg);
     195
    192196#ifdef CONFIG_MAC_KBD
    193197                uintptr_t pa = assigned_address[0].addr + 0x16000;
     
    201205                /* Initialize I/O controller */
    202206                cuda_instance_t *cuda_instance =
    203                     cuda_init(cuda, IRQ_CUDA, cir, cir_arg);
     207                    cuda_init(cuda, IRQ_CUDA, pic_cir, pic_cir_arg);
    204208                if (cuda_instance) {
    205209                        kbrd_instance_t *kbrd_instance = kbrd_init();
     
    211215                        }
    212216                }
     217
     218                /*
     219                 * This is the necessary evil until the userspace driver is entirely
     220                 * self-sufficient.
     221                 */
     222                sysinfo_set_item_val("cuda", NULL, true);
     223                sysinfo_set_item_val("cuda.inr", NULL, IRQ_CUDA);
     224                sysinfo_set_item_val("cuda.address.physical", NULL, pa);
     225                sysinfo_set_item_val("cuda.address.kernel", NULL,
     226                    (uintptr_t) cuda);
    213227#endif
    214228        }
     
    216230        /* Consider only a single device for now */
    217231        return false;
     232}
     233
     234void irq_initialize_arch(irq_t *irq)
     235{
     236        irq->cir = pic_cir;
     237        irq->cir_arg = pic_cir_arg;
     238        irq->preack = true;
    218239}
    219240
  • kernel/arch/sparc64/src/sparc64.c

    re7aa9f4 r3a2f8aa  
    4444#include <arch/mm/page.h>
    4545#include <arch/stack.h>
     46#include <interrupt.h>
    4647#include <genarch/ofw/ofw_tree.h>
    4748#include <userspace.h>
     
    166167}
    167168
     169void irq_initialize_arch(irq_t *irq)
     170{
     171        (void) irq;
     172}
     173
    168174/** @}
    169175 */
  • kernel/generic/include/interrupt.h

    re7aa9f4 r3a2f8aa  
    5151void exc_init(void);
    5252
     53extern void irq_initialize_arch(irq_t *irq);
     54
    5355#endif
    5456
  • kernel/generic/src/ddi/irq.c

    re7aa9f4 r3a2f8aa  
    7474#include <synch/spinlock.h>
    7575#include <console/console.h>
     76#include <interrupt.h>
    7677#include <memstr.h>
    7778#include <arch.h>
     
    169170        irq->inr = -1;
    170171        irq->devno = -1;
     172
     173        irq_initialize_arch(irq);
    171174}
    172175
  • uspace/Makefile

    re7aa9f4 r3a2f8aa  
    7373endif
    7474
     75ifeq ($(UARCH),ppc32)
     76        DIRS += srv/hw/bus/cuda_adb
     77endif
     78
    7579ifeq ($(UARCH),sparc64)
    7680        DIRS += \
  • uspace/app/init/init.c

    re7aa9f4 r3a2f8aa  
    287287        spawn("/srv/fhc");
    288288        spawn("/srv/obio");
     289        srv_start("/srv/cuda_adb");
    289290        srv_start("/srv/i8042");
    290291        srv_start("/srv/c_mouse");
     
    313314#endif
    314315
    315         getterm("term/vc0", "/app/bdsh");
     316        getterm("term/vc0", "/app/klog");
    316317        getterm("term/vc1", "/app/bdsh");
    317318        getterm("term/vc2", "/app/bdsh");
     
    319320        getterm("term/vc4", "/app/bdsh");
    320321        getterm("term/vc5", "/app/bdsh");
    321         getterm("term/vc6", "/app/klog");
     322/*      getterm("term/vc6", "/app/klog");*/
    322323       
    323324        return 0;
  • uspace/srv/hid/kbd/Makefile.build

    re7aa9f4 r3a2f8aa  
    125125ifeq ($(UARCH),ppc32)
    126126        SOURCES += \
    127                 port/dummy.c \
    128                 ctl/stty.c
     127                port/adb.c \
     128                ctl/apple.c
    129129endif
    130130
Note: See TracChangeset for help on using the changeset viewer.