Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/amd64/machdep.c
Show First 20 Lines • Show All 953 Lines • ▼ Show 20 Lines | ssdtosyssd(ssd, sd) | ||||
sd->sd_lolimit = (ssd->ssd_limit) & 0xffff; | sd->sd_lolimit = (ssd->ssd_limit) & 0xffff; | ||||
sd->sd_hilimit = (ssd->ssd_limit >> 16) & 0xf; | sd->sd_hilimit = (ssd->ssd_limit >> 16) & 0xf; | ||||
sd->sd_type = ssd->ssd_type; | sd->sd_type = ssd->ssd_type; | ||||
sd->sd_dpl = ssd->ssd_dpl; | sd->sd_dpl = ssd->ssd_dpl; | ||||
sd->sd_p = ssd->ssd_p; | sd->sd_p = ssd->ssd_p; | ||||
sd->sd_gran = ssd->ssd_gran; | sd->sd_gran = ssd->ssd_gran; | ||||
} | } | ||||
#if !defined(DEV_ATPIC) && defined(DEV_ISA) | |||||
#include <isa/isavar.h> | |||||
#include <isa/isareg.h> | |||||
/* | |||||
* Return a bitmap of the current interrupt requests. This is 8259-specific | |||||
* and is only suitable for use at probe time. | |||||
* This is only here to pacify sio. It is NOT FATAL if this doesn't work. | |||||
* It shouldn't be here. There should probably be an APIC centric | |||||
* implementation in the apic driver code, if at all. | |||||
*/ | |||||
intrmask_t | |||||
isa_irq_pending(void) | |||||
{ | |||||
u_char irr1; | |||||
u_char irr2; | |||||
irr1 = inb(IO_ICU1); | |||||
irr2 = inb(IO_ICU2); | |||||
return ((irr2 << 8) | irr1); | |||||
} | |||||
#endif | |||||
u_int basemem; | u_int basemem; | ||||
static int | static int | ||||
add_physmap_entry(uint64_t base, uint64_t length, vm_paddr_t *physmap, | add_physmap_entry(uint64_t base, uint64_t length, vm_paddr_t *physmap, | ||||
int *physmap_idxp) | int *physmap_idxp) | ||||
{ | { | ||||
int i, insert_idx, physmap_idx; | int i, insert_idx, physmap_idx; | ||||
▲ Show 20 Lines • Show All 1,828 Lines • Show Last 20 Lines |