Changeset 7dcf22a in mainline


Ignore:
Timestamp:
2006-10-14T11:36:29Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
63530c62
Parents:
0d107f31
Message:

Move the new IRQ redirector to ddi/.
Add function for assigning unique device numbers.
Change sparc64/drivers/kbd.c to assign devno to keyboard.

Location:
kernel
Files:
2 added
9 edited
2 moved

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r0d107f31 r7dcf22a  
    148148        generic/src/cpu/cpu.c \
    149149        generic/src/ddi/ddi.c \
     150        generic/src/ddi/irq.c \
     151        generic/src/ddi/device.c \
    150152        generic/src/interrupt/interrupt.c \
    151         generic/src/interrupt/irq.c \
    152153        generic/src/main/main.c \
    153154        generic/src/main/kinit.c \
  • kernel/arch/sparc64/src/drivers/kbd.c

    r0d107f31 r7dcf22a  
    4141#include <genarch/kbd/ns16550.h>
    4242#endif
    43 #include <irq.h>
     43#include <ddi/device.h>
     44#include <ddi/irq.h>
    4445#include <arch/mm/page.h>
    4546#include <arch/types.h>
     
    118119                } else {
    119120                        kbd_irq.inr = inr;
    120                         kbd_irq.devno = 0;                      /* FIXME: assign unique devno */
     121                        kbd_irq.devno = device_assign_devno();
    121122                        kbd_irq.trigger = IRQ_TRIGGER_LEVEL;
    122123                        kbd_irq.claim = z8530_claim;
     
    137138                } else {
    138139                        kbd_irq.inr = inr;
    139                         kbd_irq.devno = 0;                      /* FIXME: assign unique devno */
     140                        kbd_irq.devno = device_assign_devno();
    140141                        kbd_irq.trigger = IRQ_TRIGGER_LEVEL;
    141142                        kbd_irq.claim = ns16550_claim;
  • kernel/arch/sparc64/src/sparc64.c

    r0d107f31 r7dcf22a  
    4747#include <genarch/ofw/ofw_tree.h>
    4848#include <userspace.h>
    49 #include <irq.h>
     49#include <ddi/irq.h>
    5050
    5151bootinfo_t bootinfo;
  • kernel/arch/sparc64/src/trap/interrupt.c

    r0d107f31 r7dcf22a  
    3636#include <arch/trap/interrupt.h>
    3737#include <interrupt.h>
    38 #include <irq.h>
     38#include <ddi/irq.h>
    3939#include <typedefs.h>
    4040#include <arch/types.h>
  • kernel/genarch/include/kbd/ns16550.h

    r0d107f31 r7dcf22a  
    3939
    4040#include <typedefs.h>
    41 #include <irq.h>
     41#include <ddi/irq.h>
    4242
    4343extern void ns16550_init(void);
  • kernel/genarch/include/kbd/z8530.h

    r0d107f31 r7dcf22a  
    3838#define KERN_Z8530_H_
    3939
    40 #include <irq.h>
    4140#include <typedefs.h>
     41#include <ddi/irq.h>
    4242
    4343extern bool z8530_belongs_to_kernel;
  • kernel/genarch/src/kbd/ns16550.c

    r0d107f31 r7dcf22a  
    4040#include <genarch/kbd/scanc_sun.h>
    4141#include <arch/drivers/ns16550.h>
    42 #include <irq.h>
     42#include <ddi/irq.h>
    4343#include <arch/interrupt.h>
    4444#include <cpu.h>
  • kernel/genarch/src/kbd/z8530.c

    r0d107f31 r7dcf22a  
    4040#include <genarch/kbd/scanc_sun.h>
    4141#include <arch/drivers/z8530.h>
    42 #include <irq.h>
     42#include <ddi/irq.h>
    4343#include <arch/interrupt.h>
    4444#include <arch/drivers/kbd.h>
  • kernel/generic/include/ddi/irq.h

    r0d107f31 r7dcf22a  
    2727 */
    2828
    29 /** @addtogroup genericinterrupt
     29/** @addtogroup genericddi
    3030 * @{
    3131 */
     
    3838#include <arch/types.h>
    3939#include <adt/list.h>
    40 
    41 typedef int32_t inr_t;
    42 typedef int32_t devno_t;
    4340
    4441typedef enum {
  • kernel/generic/include/typedefs.h

    r0d107f31 r7dcf22a  
    9696typedef struct btree btree_t;
    9797
     98typedef signed int inr_t;
     99typedef signed int devno_t;
     100
    98101#endif
    99102
  • kernel/generic/src/ddi/irq.c

    r0d107f31 r7dcf22a  
    2727 */
    2828
    29 /** @addtogroup genericinterrupt
     29/** @addtogroup genericddi
    3030 * @{
    3131 */
     
    5959 */
    6060
    61 #include <irq.h>
     61#include <ddi/irq.h>
    6262#include <adt/hash_table.h>
    6363#include <arch/types.h>
Note: See TracChangeset for help on using the changeset viewer.