mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add some extra #ifdef stubs so that this compiles on 4.8.
Approved by: re (rwatson/bmah)
This commit is contained in:
parent
3e4e484918
commit
dea7cce585
4 changed files with 19 additions and 0 deletions
|
|
@ -36,7 +36,11 @@
|
|||
#include <machine/bus_pio.h>
|
||||
#include <machine/bus.h>
|
||||
#include <machine/pci_cfgreg.h>
|
||||
#if __FreeBSD_version >= 500000
|
||||
#include <dev/pci/pcireg.h>
|
||||
#else
|
||||
#include <pci/pcireg.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* ACPICA's rather gung-ho approach to hardware resource ownership is a little
|
||||
|
|
|
|||
|
|
@ -39,6 +39,10 @@
|
|||
#include <machine/bus.h>
|
||||
#include <machine/resource.h>
|
||||
|
||||
#if __FreeBSD_version < 500000
|
||||
typedef vm_offset_t vm_paddr_t;
|
||||
#endif
|
||||
|
||||
struct acpi_softc {
|
||||
device_t acpi_dev;
|
||||
dev_t acpi_dev_t;
|
||||
|
|
@ -389,12 +393,14 @@ extern int acpi_cmbat_get_battinfo(int, struct acpi_battinfo *);
|
|||
|
||||
extern int acpi_acad_get_acline(int *);
|
||||
|
||||
#if __FreeBSD_version >= 500000
|
||||
#ifndef ACPI_MAX_THREADS
|
||||
#define ACPI_MAX_THREADS 3
|
||||
#endif
|
||||
#if ACPI_MAX_THREADS > 0
|
||||
#define ACPI_USE_THREADS
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef ACPI_USE_THREADS
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -52,7 +52,11 @@ static device_t acpi_dev;
|
|||
#include <machine/apm_bios.h>
|
||||
#include <machine/pc/bios.h>
|
||||
|
||||
#if __FreeBSD_version < 500000
|
||||
#include <i386/apm/apm.h>
|
||||
#else
|
||||
#include <i386/bios/apm.h>
|
||||
#endif
|
||||
|
||||
static struct apm_softc apm_softc;
|
||||
|
||||
|
|
|
|||
|
|
@ -58,6 +58,11 @@
|
|||
|
||||
#include "acpi_wakecode.h"
|
||||
|
||||
#if __FreeBSD_version < 500000
|
||||
#define vm_page_lock_queues()
|
||||
#define vm_page_unlock_queues()
|
||||
#endif
|
||||
|
||||
extern void initializecpu(void);
|
||||
|
||||
static struct region_descriptor r_idt, r_gdt, *p_gdt;
|
||||
|
|
|
|||
Loading…
Reference in a new issue