Ed Schouten
d745c852be
Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.
...
This means that their use is restricted to a single C file.
2011-11-07 06:44:47 +00:00
Jung-uk Kim
5947a0a3c8
Fix a witness(4) warning introduced in r217238.
2011-01-11 19:20:01 +00:00
Jung-uk Kim
ea5bef4942
Remove impossible error conditions.
2011-01-10 21:09:38 +00:00
Jung-uk Kim
bd532602ec
Add forgotten free(9) in the previous commit for an error case.
2011-01-10 21:01:41 +00:00
Jung-uk Kim
82bf55575d
Allow AcpiOsInstallInterruptHandler() and AcpiOsRemoveInterruptHandler() to
...
install or remove non-SCI interrupt handlers per ACPI Component Architecture
User Guide and Programmer Reference. ACPICA may install such interrupt
handler when a GPE block device is found, for example. Add a wrapper for
ACPI_OSD_HANDLER, convert its return values to ours, and make it a filter.
Prefer KASSERT(9) over panic(9) as we have never seen those in reality.
Clean up some style(9) nits and add my copyright.
2011-01-10 20:56:59 +00:00
Jung-uk Kim
129d3046ef
Import ACPICA 20090521.
2009-06-05 18:44:36 +00:00
Paolo Pisati
ef544f6312
o break newbus api: add a new argument of type driver_filter_t to
...
bus_setup_intr()
o add an int return code to all fast handlers
o retire INTR_FAST/IH_FAST
For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current
Reviewed by: many
Approved by: re@
2007-02-23 12:19:07 +00:00
David E. O'Brien
2a191126de
Canonize the include of acpi.h.
2005-09-11 18:39:03 +00:00
Nate Lawson
a3ab9d1e3e
Standardize __FBSDID identifiers.
...
MFC after: 2 days
2005-07-22 23:10:02 +00:00
Mark Santcroos
f8c60df7a6
Catch up with AcpiOsSleep() interface change.
...
Catch up with some #define's renaming.
Implement AcpiOsGetTimer() as per ACPI 3.0.
Approved by: njl
MFC after: 1 week
2004-12-02 00:25:35 +00:00
Nate Lawson
e13cc46e0c
MPSAFE locking
...
* Remove the interrupt wrapper that locked Giant and call the handler
directly. Mark the handler as MPSAFE.
* Don't attempt to detect if a handler is installed. Leave that to the
bus_alloc_resource() function.
2004-08-13 06:22:24 +00:00
Nate Lawson
e6f06f99f6
Style cleanup, plus properly backup partial resource allocation in
...
AcpiOsInstallInterruptHandler() in the case of failure to initialize.
2004-04-14 03:41:06 +00:00
Nate Lawson
5f96beb9e0
Convert callers to the new bus_alloc_resource_any(9) API.
...
Submitted by: Mark Santcroos <marks@ripe.net>
Reviewed by: imp, dfr, bde
2004-03-17 17:50:55 +00:00
John Baldwin
284739a942
Reindent to non-style(9) compliant 4 space indent to match rest of file.
2003-11-12 16:24:16 +00:00
John Baldwin
07f0d09e81
Add an ACPI_FUNCTION_TRACE() invocation to acpi_OverrideInterruptLevel()
...
to fix compile with ACPI_DEBUG.
Reported by: tinderbox
2003-11-12 16:23:21 +00:00
John Baldwin
801cc576ec
Add an acpi_OverrideInterruptLevel() method that OSPM can use to override
...
the InterruptLevel used for the SCI.
2003-11-11 18:12:12 +00:00
John Baldwin
fc0ea94a7d
Catch up to changes in acpivar.h to add support for using ACPI on
...
4-stable systems.
Sponsored by: The Weather Channel
2002-10-16 17:28:53 +00:00
Peter Wemm
b4a052380f
Brutally deal with __func__ being 'const char *' on gcc-3.1.
2002-05-19 06:16:47 +00:00
Mike Smith
72e5754cfb
Match namespace cleanup changes in ACPI CA 20020217 update.
2002-02-23 05:31:38 +00:00
Mike Smith
b6b6d662bc
find_devclass -> devclass_find.
2002-01-08 19:14:59 +00:00
Mike Smith
3273b00523
Staticise devclasses and some unnecessarily global variables.
2002-01-08 06:46:01 +00:00
Mike Smith
76f2b644fd
Synch with minor changes in the ACPI CA 20011120 snapshot.
2001-11-28 04:36:29 +00:00
Mitsuru IWASAKI
44df042b35
Better checking of duplicated interrupt handler installation.
...
Reviewed by: msmith
2001-07-25 16:13:30 +00:00
Mike Smith
db302f9945
Get the ACPI softc before we potentially dereference it.
2001-07-07 10:18:10 +00:00
Mike Smith
04b09dd665
Wrap the interrupt handler so that we can get the ACPI lock.
2001-06-29 21:21:08 +00:00
Mike Smith
2a4ac806d7
- Updates for new constant naming in the ACPI CA 20010518 update.
...
- Use __func__ instead of __FUNCTION.
- Support power-off to S3 or S5 (takawata)
- Enable ACPI debugging earlier (with a sysinit)
- Fix a deadlock in the EC code (takawata)
- Improve arithmetic and reduce the risk of spurious wakeup in
AcpiOsSleep.
- Add AcpiOsGetThreadId.
- Simplify mutex code (still disabled).
2001-05-29 20:13:42 +00:00
Mike Smith
b2e6de72d4
Add some debugging statements.
2001-01-31 09:34:54 +00:00
Mike Smith
fd660059d9
FreeBSD-specific OSD (operating system dependant) modules for the Intel
...
ACPICA code.
2000-10-28 06:56:15 +00:00