933a354fe5
code. Both the driver and the new code were wrong. Driver interrupt handlers are supposed to take "void *vsc" arg, but some including all COMPAT_ISA drivers and the pci part of the cy driver want an "int unit" arg. They got this using bogus casts of function pointers which should have kept working despite their bogusness. However, the new interrupt code doesn't honor requests to pass an arg of ((void *)0), so things are very broken if the arg is actually a representation of unit 0. The fix is to use a normal "void *vsc" arg for the pci case and a wrapper for the COMPAT_ISA case (of the cy driver). This cleans up new-busification of the pci case but takes the COMPAT_ISA case a little further from new-bus. The corresponding bug for the COMPAT_ISA case has already been fixed similarly using a wrapper in compat_isa.c and we need another wrapper just to undo that. Fixed some directly related style bugs (mainly by removing compatibility cruft). cy.c: Fixed an indirectly related old bug in cyattach_common(). A wrong status was returned in the unlikely event that malloc() failed. Approved by: re (scottl) |
||
---|---|---|
.. | ||
agp_ali.c | ||
agp_amd.c | ||
agp_i810.c | ||
agp_if.m | ||
agp_intel.c | ||
agp_nvidia.c | ||
agp_sis.c | ||
agp_via.c | ||
agp.c | ||
agppriv.h | ||
agpreg.h | ||
agpvar.h | ||
alpm.c | ||
amdpm.c | ||
cy_pci.c | ||
dc21040reg.h | ||
if_dc.c | ||
if_dcreg.h | ||
if_de.c | ||
if_devar.h | ||
if_mn.c | ||
if_pcn.c | ||
if_pcnreg.h | ||
if_rl.c | ||
if_rlreg.h | ||
if_sf.c | ||
if_sfreg.h | ||
if_sis.c | ||
if_sisreg.h | ||
if_sk.c | ||
if_skreg.h | ||
if_ste.c | ||
if_stereg.h | ||
if_ti.c | ||
if_tireg.h | ||
if_tl.c | ||
if_tlreg.h | ||
if_vr.c | ||
if_vrreg.h | ||
if_wb.c | ||
if_wbreg.h | ||
if_xl.c | ||
if_xlreg.h | ||
intpm.c | ||
intpmreg.h | ||
locate.pl | ||
meteor_reg.h | ||
meteor.c | ||
ncr.c | ||
ncrreg.h | ||
ti_fw2.h | ||
ti_fw.h | ||
viapm.c | ||
xmaciireg.h | ||
xrpu.c | ||
yukonreg.h |