Ignore:
Timestamp:
2008-11-29T20:24:47Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
57e76cb
Parents:
dfd77382
Message:

Add additional members to the irq_t structure so that an interrupt-driven driver
does not need to know how to clear the level interrupt. The z8530 was modified
in this way and is much more generic. The ns16550 driver has also been modified,
but awaits testing. The sparc64 interrupt mapping and dispatch code is now using
the new info and calls the clear-interrupt-routine itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/drivers/pci.h

    rdfd77382 r8d2760f  
    5252
    5353struct pci_operations {
    54         void (* enable_interrupt)(pci_t *pci, int inr);
    55         void (* clear_interrupt)(pci_t *pci, int inr);
     54        void (* enable_interrupt)(pci_t *, int);
     55        void (* clear_interrupt)(pci_t *, int);
    5656};
    5757
     
    6262};
    6363
    64 extern pci_t *pci_init(ofw_tree_node_t *node);
    65 extern void pci_enable_interrupt(pci_t *pci, int inr);
    66 extern void pci_clear_interrupt(pci_t *pci, int inr);
     64extern pci_t *pci_init(ofw_tree_node_t *);
     65extern void pci_enable_interrupt(pci_t *, int);
     66extern void pci_clear_interrupt(void *, int);
    6767
    6868#endif
Note: See TracChangeset for help on using the changeset viewer.