Add intrack field to each slot. This can be used to acknowledge
interrupts on other buses. Right now it isn't used, but will be for the pci attachment. # Add copyright by me for this year since I've changed so much.
This commit is contained in:
parent
5da1cb2e2f
commit
f7d83eb183
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77159
@ -2,6 +2,7 @@
|
||||
* Intel PCIC or compatible Controller driver
|
||||
*-------------------------------------------------------------------------
|
||||
*
|
||||
* Copyright (c) 2001 M. Warner Losh. All rights reserved.
|
||||
* Copyright (c) 1995 Andrew McRae. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -660,6 +661,8 @@ pcicintr1(void *arg)
|
||||
splx(s);
|
||||
return (EIO);
|
||||
}
|
||||
if (sp->intrack)
|
||||
sp->intrack(sp);
|
||||
if (chg & PCIC_CDTCH) {
|
||||
if ((sp->getb(sp, PCIC_STATUS) & PCIC_CD) ==
|
||||
PCIC_CD) {
|
||||
|
@ -35,6 +35,7 @@ struct pcic_slot {
|
||||
struct pcic_softc *sc; /* Back pointer to softc */
|
||||
u_char (*getb)(struct pcic_slot *, int);
|
||||
void (*putb)(struct pcic_slot *, int, u_char);
|
||||
void (*intrack)(struct pcic_slot *);
|
||||
bus_space_tag_t bst;
|
||||
bus_space_handle_t bsh;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user