Subversion Repositories HelenOS

Rev

Rev 3654 | Rev 4011 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3654 Rev 3655
Line 52... Line 52...
52
#define OBIO_IMR(ino)   (OBIO_IMR_BASE + ((ino) & INO_MASK))
52
#define OBIO_IMR(ino)   (OBIO_IMR_BASE + ((ino) & INO_MASK))
53
 
53
 
54
#define OBIO_CIR_BASE   0x300
54
#define OBIO_CIR_BASE   0x300
55
#define OBIO_CIR(ino)   (OBIO_CIR_BASE + ((ino) & INO_MASK))
55
#define OBIO_CIR(ino)   (OBIO_CIR_BASE + ((ino) & INO_MASK))
56
 
56
 
57
static void obio_enable_interrupt(pci_t *pci, int inr);
57
static void obio_enable_interrupt(pci_t *, int);
58
static void obio_clear_interrupt(pci_t *pci, int inr);
58
static void obio_clear_interrupt(pci_t *, int);
59
 
59
 
60
static pci_t *pci_sabre_init(ofw_tree_node_t *node);
60
static pci_t *pci_sabre_init(ofw_tree_node_t *);
61
static pci_t *pci_psycho_init(ofw_tree_node_t *node);
61
static pci_t *pci_psycho_init(ofw_tree_node_t *);
62
 
62
 
63
/** PCI operations for Sabre model. */
63
/** PCI operations for Sabre model. */
64
static pci_operations_t pci_sabre_ops = {
64
static pci_operations_t pci_sabre_ops = {
65
    .enable_interrupt = obio_enable_interrupt,
65
    .enable_interrupt = obio_enable_interrupt,
66
    .clear_interrupt = obio_clear_interrupt
66
    .clear_interrupt = obio_clear_interrupt
Line 206... Line 206...
206
{
206
{
207
    ASSERT(pci->op && pci->op->enable_interrupt);
207
    ASSERT(pci->op && pci->op->enable_interrupt);
208
    pci->op->enable_interrupt(pci, inr);
208
    pci->op->enable_interrupt(pci, inr);
209
}
209
}
210
 
210
 
211
void pci_clear_interrupt(pci_t *pci, int inr)
211
void pci_clear_interrupt(void *pcip, int inr)
212
{
212
{
-
 
213
    pci_t *pci = (pci_t *)pcip;
-
 
214
 
213
    ASSERT(pci->op && pci->op->clear_interrupt);
215
    ASSERT(pci->op && pci->op->clear_interrupt);
214
    pci->op->clear_interrupt(pci, inr);
216
    pci->op->clear_interrupt(pci, inr);
215
}
217
}
216
 
218
 
217
/** @}
219
/** @}