Home | History | Annotate | Download | only in isa
History log of /src/sys/dev/isa/i82365_isa.c
RevisionDateAuthorComments
 1.36  25-Sep-2022  thorpej Remove unnecessary include of <sys/malloc.h>.
 1.35  14-Jul-2016  msaitoh - Use aprint*() more in xxx_attach().
- Add missing aprint_naive("\n").
- Remove extra spaces and tabs.
- KNF.
 1.34  27-Oct-2012  chs branches: 1.34.14;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.33  17-Sep-2009  tsutsui branches: 1.33.12; 1.33.22;
Misc KNF and cosmetics, and remove unnecessary casts etc.
 1.32  14-Sep-2009  tsutsui Use device_private(), proper types or variables for device_t and softc.
(not yet split though)

No crash on gxemul emulating hpcmips mobilepro.
 1.31  12-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.30  12-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.29  26-Jun-2008  drochner branches: 1.29.10;
constify the pcmcia/cardbus method tables
 1.28  19-Oct-2007  ad branches: 1.28.16; 1.28.20; 1.28.22; 1.28.24;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.27  16-Nov-2006  christos branches: 1.27.8; 1.27.22; 1.27.24; 1.27.28;
__unused removal on arguments; approved by core.
 1.26  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.25  02-Sep-2006  christos branches: 1.25.2; 1.25.4;
add missing initializers
 1.24  11-Dec-2005  christos branches: 1.24.4; 1.24.8;
merge ktrace-lwp.
 1.23  04-Feb-2005  perry branches: 1.23.6;
de-__P
 1.22  14-Sep-2004  drochner branches: 1.22.4; 1.22.6;
Separate the namespace for default (ie unspecified) locators used
by the isa.c bus driver and the "address/whatever not specified"
argument passed to leaf device drivers.
The former is "ISACF_XXX_DEFAULT" as generaterd by config(8), the latter
"ISA_UNKNOWN_XXX", defined in isavar.h.
This way we save a dependency of every ISA device driver on "locators.h".
 1.21  11-Aug-2004  mycroft Rather than having a call up from the low-level driver to get the card type,
instead have a call down from the PCMCIA mid-layer to set it. Use this from
pcmcia_function_enable(). (Currently the policy is the same, but this would
allow for more flexibility in deciding which mode to use.)

Now it is safe to hold the socket enabled during attach, so do that. Only
one enable/disable cycle to attach a card now!
 1.20  02-Oct-2002  thorpej branches: 1.20.6;
Fix sizeof and whitespace bug from the script I'm using to do the
CFATTACH_DECL conversion. (Grumble.)
 1.19  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.18  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.17  07-Jan-2002  thorpej Overhaul of the ISA autoconfiguration code to support direct
configuration of devices logically attached to the ISA bus:

* Change the isa_attach_args to have arrays of io, mem, irq, drq
resources.
* Add a "pnpnames" and a linked list of "pnpcompatnames" to the
isa_attach_args. If either of these members are non-NULL,
direct configuration of the bus is being performed. Add an
ISA_DIRECT_CONFIG() macro to test for this.
* Drivers are not allowed to modify the isa_attach_args unless
direct configuration is not being performed and the probe fucntion
is returning success.
* Adapt device drivers -- currently, all driver probe routines return
"no match" if ISA_DIRECT_CONFIG() evaluates to true.
 1.16  15-Nov-2001  lukem don't need <sys/types.h> when including <sys/param.h>
 1.15  13-Nov-2001  lukem add RCSID
 1.14  28-Jun-2000  mrg branches: 1.14.2; 1.14.4;
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.13  22-Feb-2000  thorpej Don't use void * for chipset tags. Bad hacker, no biscuit.
 1.12  01-Feb-2000  chopps implement probing for available irqs on non-cirrus pcmcia controllers
including cardbus controllers running in pcic mode
 1.11  09-Jun-1998  thorpej branches: 1.11.14;
Nuke __BROKEN_INDIRECT_CONFIG.
 1.10  07-Jun-1998  sommerfe Add ISAPnP attachment for PCMCIA bus controller; reorganize ISA
attachment to let it share code with PnP attachment.
 1.9  23-May-1998  matt Changes so that these compile on NetBSD/alpha as well as NetBSD/i386.
 1.8  30-Nov-1997  drochner make it compile without "__BROKEN_INDIRECT_CONFIG"
 1.7  05-Nov-1997  thorpej The bus width probe doesn't always work properly, producing a false positive
for 12-bit addresses. This causes PCMCIA cards mapped at 0x400 and higher
to not function properly. However, the range 0x300-0x3ff causes some
laptops (e.g. the NEC Versa 6030X) to hang if cards are mapped there.

So, after some experimentation, we compromise. If the probe discovers
a 12-bit address bus, don't trust it. Instead, use the range 0x330-0x3ff.
This has been shown to work on the laptops that the 0x300-0x3ff range is
known to fail on.
 1.6  29-Oct-1997  thorpej - Move all of the configurable parameters (alloc_iobase, alloc_iosize,
intr_alloc_mask) into one place, comment them, and defopt them.
- Rename pcic_intr_alloc_mask to pcic_isa_intr_alloc_mask, since it's
an ISA-specific thing.
- When allocating/establishing the PCIC's interrupt (for card events),
do error checking, and pay attention to the intr_alloc_mask.
 1.5  29-Oct-1997  thorpej Take IRQ 10 out of the default IRQ allocation mask. That IRQ is reserved
for the built-in SCSI on NEC Versa docking stations, and if a card
allocates that IRQ, it will never get interrupts. This caused the
default kernel to not work on these laptops, as IRQ 10 was often the
first free IRQ.
 1.4  20-Oct-1997  thorpej branches: 1.4.2;
Don't panic if we fail to remap i/o or mem space in the attach function.
Instead, print a diagnostic and return. (Some drivers do this already.)

Also, normalize the diagnostic message, and fix some places where the
printfs were getting ugly.
 1.3  19-Oct-1997  thorpej Make sure the i/o and/or mem addresses aren't wildcarded (i.e. -1) before
using the address in a bus_space_map() call.
 1.2  16-Oct-1997  thorpej Pull marc-pcmcia branch down to trunk.
 1.1  28-Aug-1997  marc branches: 1.1.2;
file i82365_isa.c was initially added on branch marc-pcmcia.
 1.1.2.4  16-Oct-1997  thorpej Copyright/license update.
 1.1.2.3  16-Oct-1997  thorpej KNF, RCS IDs.
 1.1.2.2  27-Sep-1997  marc - add code to probe for the io bus width. Some machines have 10-bit
io busses, some 12-bit. This adds two new config options
(PCIC_ISA_ALLOC_IOBASE, PCIC_ISA_ALLOC_IOSIZE) for overriding this at
config-time
- for power management, remember the card irq so it can be restored.
 1.1.2.1  28-Aug-1997  marc isa-specific code from i82365 driver bus split
 1.4.2.3  05-Nov-1997  thorpej Pull up from trunk: compromise on the i/o allocation range if the
buswidth probe returns a false "12-bit" answer.
 1.4.2.2  29-Oct-1997  thorpej Pull up from trunk: group options, defopt them, and be better with
interrupt allocation.
 1.4.2.1  29-Oct-1997  thorpej Pull up from trunk: Take IRQ 10 out of the default allocation mask.
 1.11.14.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.14.4.2  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.14.4.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.14.2.5  18-Oct-2002  nathanw Catch up to -current.
 1.14.2.4  28-Feb-2002  nathanw Catch up to -current.
 1.14.2.3  11-Jan-2002  nathanw More catchup.
 1.14.2.2  08-Jan-2002  nathanw Catch up to -current.
 1.14.2.1  14-Nov-2001  nathanw Catch up to -current.
 1.20.6.4  04-Feb-2005  skrll Sync with HEAD.
 1.20.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.20.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.20.6.1  12-Aug-2004  skrll Sync with HEAD.
 1.22.6.1  12-Feb-2005  yamt sync with head.
 1.22.4.1  29-Apr-2005  kent sync with -current
 1.23.6.2  27-Oct-2007  yamt sync with head.
 1.23.6.1  30-Dec-2006  yamt sync with head.
 1.24.8.1  03-Sep-2006  yamt sync with head.
 1.24.4.1  09-Sep-2006  rpaulo sync with head
 1.25.4.2  10-Dec-2006  yamt sync with head.
 1.25.4.1  22-Oct-2006  yamt sync with head
 1.25.2.1  18-Nov-2006  ad Sync with head.
 1.27.28.1  25-Oct-2007  bouyer Sync with HEAD.
 1.27.24.1  06-Nov-2007  matt sync with HEAD
 1.27.22.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.27.8.1  23-Oct-2007  ad Sync with head.
 1.28.24.1  27-Jun-2008  simonb Sync with head.
 1.28.22.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.28.20.4  11-Mar-2010  yamt sync with head
 1.28.20.3  16-Sep-2009  yamt sync with head
 1.28.20.2  16-May-2009  yamt sync with head
 1.28.20.1  04-May-2009  yamt sync with head.
 1.28.16.1  29-Jun-2008  mjf Sync with HEAD.
 1.29.10.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.33.22.2  03-Dec-2017  jdolecek update from HEAD
 1.33.22.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.33.12.1  30-Oct-2012  yamt sync with head
 1.34.14.1  05-Oct-2016  skrll Sync with HEAD

RSS XML Feed