Home | History | Annotate | Download | only in acpi
History log of /src/sys/dev/acpi/fdc_acpi.c
RevisionDateAuthorComments
 1.47  15-Oct-2021  jmcneill Convert some debug messages to aprint_debug
 1.46  29-Jan-2021  thorpej Use acpi_compatible_match().
 1.45  07-Dec-2020  jmcneill Fix 32-bit build.
 1.44  06-Dec-2020  jmcneill acpi: Use acpi_intr_establish to install interrupt handlers

Get rid of bus-specific (isa_intr_establish) and MD (intr_establish) calls
from MI ACPI code, and use acpi_intr_establish everywhere.
 1.43  13-Apr-2015  riastradh branches: 1.43.32;
Convert sys/dev to use <sys/rndsource.h>.
 1.42  02-Feb-2012  tls branches: 1.42.6; 1.42.24;
Entropy-pool implementation move and cleanup.

1) Move core entropy-pool code and source/sink/sample management code
to sys/kern from sys/dev.

2) Remove use of NRND as test for presence of entropy-pool code throughout
source tree.

3) Remove use of RND_ENABLED in device drivers as microoptimization to
avoid expensive operations on disabled entropy sources; make the
rnd_add calls do this directly so all callers benefit.

4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
have lead to slight entropy overestimation for some sources.

5) Add new source types for environmental sensors, power sensors, VM
system events, and skew between clocks, with a sample implementation
for each.

ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files). Tested with release
builds on amd64 and evbarm and live testing on amd64.
 1.41  07-Aug-2010  jruoho branches: 1.41.8; 1.41.12;
Remove the last ACPI driver -specific #ifdef, ACPI_FDC_DEBUG.
 1.40  14-Apr-2010  jruoho No need to spread the ACPICA type system any more than is necessary:

UINT8 -> uint8_t and UINT32 -> uint32_t.
 1.39  10-Apr-2010  jruoho Remove unnecessary casts.
 1.38  05-Mar-2010  jruoho branches: 1.38.2;
Remove <dev/acpi/acpica.h> from all files. It is included from
<dev/acpi/acpivar.h>. Ditto for <dev/sysmon/sysmonvar.h>, <sys/bus.h>,
<dev/pci/pcivar.h>, and <dev/isa/isavar.h>.

Also nuke a lot of unused and invalid headers. Some of these are audibly
provided by standard headers (namely <sys/param.h> and <sys/device.h>), some
have nothing to do with ACPI devices (e.g. <sys/syslog.h>), and some are
nonexistent local includes (e.g. "mpu_ym.h"). Moreoever, try to group the
includes into their respective blocks.

Tested with GENERIC and ALL (i386). No functional change.
 1.37  02-Mar-2010  jruoho Format string cosmetics (mainly from %d to %u).
 1.36  16-Sep-2009  mlelstv branches: 1.36.2;
Allow for 'options ACPI_DEBUG' by providing module declarations
and using memory allocation macros instead of calling AcpiOs* stubs
directly.
 1.35  17-Feb-2009  jmcneill Cut the amount of spam from acpi devices in roughly half by printing
resources on the same line as autoconf messages. Things like:
pcppi1 at acpi0 (SPKR, PNP0800)
pcppi1: io 0x61
become:
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
 1.34  16-Mar-2008  yamt branches: 1.34.4; 1.34.12; 1.34.14; 1.34.18; 1.34.22;
fix compilation
 1.33  16-Mar-2008  cube Split device_t and softc for the ... wait for it ... [air quotes] MI
variant of fdc(4)/fd(4). Other cosmetic changes as appropriate.
 1.32  18-Feb-2008  dyoung branches: 1.32.2; 1.32.6;
Use aprint_*_dev(), device_t and accessors. Constify a bit.
 1.31  19-Oct-2007  ad branches: 1.31.2;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.30  16-Nov-2006  christos branches: 1.30.8; 1.30.22; 1.30.24; 1.30.28;
__unused removal on arguments; approved by core.
 1.29  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.28  20-Feb-2006  kochi branches: 1.28.14; 1.28.16;
use aprint_*
 1.27  11-Dec-2005  christos branches: 1.27.2; 1.27.4; 1.27.6;
merge ktrace-lwp.
 1.26  11-Jul-2005  drochner reduce the last commit to its essence; the rest was
not so helpful
 1.25  11-Jul-2005  christos PR/30720: Nicolas Joly: compilation failure with ACPI_FDC_DEBUG
 1.24  29-May-2005  christos branches: 1.24.2;
Sprinkle const freely and delete unnecessary casts.
 1.23  28-Oct-2004  yamt move buffer queue related stuffs from buf.h to their own header, bufq.h.
 1.22  01-May-2004  kochi specify static where appropriate.
 1.21  11-Apr-2004  kochi Clean up memory allocated during autoconfiguration
 1.20  11-Apr-2004  kochi change acpi_resource_parse API to support _PRS parsing as well as _CRS
 1.19  10-Apr-2004  kochi whitespace nit
 1.18  03-Nov-2003  mycroft Match all PNP07?? IDs.
 1.17  03-Nov-2003  mycroft More cleanup:
* Use ACPI_FAILURE() and ACPI_SUCCESS().
* Output exception strings in a few more places.
 1.16  03-Nov-2003  mycroft Clean up some messages:
* Use AcpiFormatException() in a bunch of places.
* acpi_resource_parse() already prints an error, so don't do it in the callers.
 1.15  03-Nov-2003  kochi * now the size of ACPI_DEVICE_INFO is variable:
it can now accomodate multiple _CIDs
sizeof(ACPI_DEVICE_INFO) should not be used
* make ad_devinfo member in acpi_devnode a pointer
* implement acpi_match_hid() to simplify matching devices;
_CIDs are also taken into account now as well as _HID
 1.14  31-Oct-2003  mycroft Catch up with ABI changes in ACPI-CA. Some additional changes to acpi_bat to
set the VALID bits correctly, so we don't report garbage for missing batteries.
 1.13  25-Sep-2003  christos imake this compile again.
 1.12  25-Sep-2003  mycroft Modify the fdcattach() interface again, splitting it into two parts, so that
DRQ allocation is done earlier.
 1.11  25-Sep-2003  mycroft Update for new attach method.
 1.10  15-Aug-2003  kochi 'struct acpi_resources' will have references to malloc'ed memory.
So it's better to not to allocate on stack.
 1.9  18-Jun-2003  drochner branches: 1.9.2;
don't #include <sys/dkstat.h> where it is (appearently) unused
 1.8  21-May-2003  christos size_t != unsigned int all the time.
 1.7  13-Jan-2003  jmcneill Why do I always think 'evaluate' and type 'evalulate'?
 1.6  09-Jan-2003  jdolecek need to select proper IST for interrupt - IST_NONE is almost certainly not
right

this makes fdc@acpi and com@acpi actually work on my machine; lpt@acpi
change untested, but should be same as fdc and com
 1.5  09-Jan-2003  jdolecek _FDE is optional, so don't print warning messages about it failing
unless ACPI_FDC_DEBUG
array returned from _FDE contains UINT32 values, not UINT8; also change
the magic number '14' to '5 * sizeof(UINT32)' for clarity
remove XXX for the tape presence comment; it's Just Okay to not use the info
fdc_acpi_getknownfds(): if fdc_acpi_nvtotype() returns NULL, don't
attempt to attach the drive at all

XXX not tested
 1.4  09-Jan-2003  jmcneill A few fallbacks:
1. If _FDE fails, fall-back to the old-style of drive probing.
2. If _FDI fails on a drive, assume a 1.44MB 3.5" floppy drive.
 1.3  09-Jan-2003  jmcneill Enumerate floppy disk drives via ACPI (mmm, faster booting). Known to work
with one floppy drive; not quite sure if the logic handling _FDI is right.
 1.2  28-Dec-2002  jmcneill branches: 1.2.2;
Correctly pass the proper DRQ down to the common fdc driver.
 1.1  28-Dec-2002  jmcneill Add an fdc at acpi(4) attachment
 1.2.2.3  15-Jan-2003  thorpej Sync with HEAD.
 1.2.2.2  29-Dec-2002  thorpej Sync with HEAD.
 1.2.2.1  28-Dec-2002  thorpej file fdc_acpi.c was added on branch nathanw_sa on 2002-12-29 20:45:31 +0000
 1.9.2.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.9.2.4  02-Nov-2004  skrll Sync with HEAD.
 1.9.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.9.2.1  03-Aug-2004  skrll Sync with HEAD
 1.24.2.5  17-Mar-2008  yamt sync with head.
 1.24.2.4  27-Feb-2008  yamt sync with head.
 1.24.2.3  27-Oct-2007  yamt sync with head.
 1.24.2.2  30-Dec-2006  yamt sync with head.
 1.24.2.1  21-Jun-2006  yamt sync with head.
 1.27.6.1  22-Apr-2006  simonb Sync with head.
 1.27.4.1  09-Sep-2006  rpaulo sync with head
 1.27.2.1  01-Mar-2006  yamt sync with head.
 1.28.16.2  10-Dec-2006  yamt sync with head.
 1.28.16.1  22-Oct-2006  yamt sync with head
 1.28.14.1  18-Nov-2006  ad Sync with head.
 1.30.28.1  25-Oct-2007  bouyer Sync with HEAD.
 1.30.24.2  23-Mar-2008  matt sync with HEAD
 1.30.24.1  06-Nov-2007  matt sync with HEAD
 1.30.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.30.8.1  23-Oct-2007  ad Sync with head.
 1.31.2.1  18-Feb-2008  mjf Sync with HEAD.
 1.32.6.1  03-Apr-2008  mjf Sync with HEAD.
 1.32.2.1  24-Mar-2008  keiichi sync with head.
 1.34.22.1  21-Apr-2010  matt sync to netbsd-5
 1.34.18.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.34.14.1  01-May-2009  snj Pull up following revision(s) (requested by jmcneill in ticket #498):
sys/dev/acpi/acpi_ec.c: revision 1.53
sys/dev/acpi/acpi_resource.c: revision 1.27
sys/dev/acpi/atppc_acpi.c: revision 1.16
sys/dev/acpi/attimer_acpi.c: revision 1.12
sys/dev/acpi/com_acpi.c: revision 1.28
sys/dev/acpi/fdc_acpi.c: revision 1.35
sys/dev/acpi/hpet_acpi.c: revision 1.4
sys/dev/acpi/joy_acpi.c: revision 1.9
sys/dev/acpi/lpt_acpi.c: revision 1.18
sys/dev/acpi/mpu_acpi.c: revision 1.9
sys/dev/acpi/pckbc_acpi.c: revision 1.31
sys/dev/acpi/pcppi_acpi.c: revision 1.11
sys/dev/acpi/ug_acpi.c: revision 1.5
sys/dev/acpi/wss_acpi.c: revision 1.20
sys/dev/acpi/ym_acpi.c: revision 1.6
Cut the amount of spam from acpi devices in roughly half by printing
resources on the same line as autoconf messages. Things like:
pcppi1 at acpi0 (SPKR, PNP0800)
pcppi1: io 0x61
become:
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
 1.34.12.1  03-Mar-2009  skrll Sync with HEAD.
 1.34.4.3  11-Aug-2010  yamt sync with head.
 1.34.4.2  11-Mar-2010  yamt sync with head
 1.34.4.1  04-May-2009  yamt sync with head.
 1.36.2.2  17-Aug-2010  uebayasi Sync with HEAD.
 1.36.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.38.2.2  05-Mar-2011  rmind sync with head
 1.38.2.1  30-May-2010  rmind sync with head
 1.41.12.1  18-Feb-2012  mrg merge to -current.
 1.41.8.1  17-Apr-2012  yamt sync with head
 1.42.24.1  06-Jun-2015  skrll Sync with HEAD
 1.42.6.1  03-Dec-2017  jdolecek update from HEAD
 1.43.32.2  03-Apr-2021  thorpej Sync with HEAD.
 1.43.32.1  14-Dec-2020  thorpej Sync w/ HEAD.

RSS XML Feed