mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
* sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Kill sethae. * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase. * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants): Use physical addresses not KSEG addresses. (io_system): Add PYXIS. (io): Remove hae.reg, sys, hae_shift. (stb_mb, stw_mb, stl_mb, __sethae): New. (inline_outb, inline_outw, inline_outl): Don't set hae. (inline_inb, inline_inw, inline_inl): Likewise. (dense_sethae): New null function. (struct cpuinfo_data): New. (process_cpuinfo): Use local and stack variables, not static. Move readlink check here from init_iosys. (init_iosys): Use __pciconfig_iobase first. Know SX and LX as PYXIS. (_iopl): Simplify. (_hae_shift): Calculate it here. * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae, add pciconfig_iobase.
2000-03-20 Richard Henderson <rth@cygnus.com> * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Kill sethae. * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase. * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants): Use physical addresses not KSEG addresses. (io_system): Add PYXIS. (io): Remove hae.reg, sys, hae_shift. (stb_mb, stw_mb, stl_mb, __sethae): New. (inline_outb, inline_outw, inline_outl): Don't set hae. (inline_inb, inline_inw, inline_inl): Likewise. (dense_sethae): New null function. (struct cpuinfo_data): New. (process_cpuinfo): Use local and stack variables, not static. Move readlink check here from init_iosys. (init_iosys): Use __pciconfig_iobase first. Know SX and LX as PYXIS. (_iopl): Simplify. (_hae_shift): Calculate it here. * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae, add pciconfig_iobase.
This commit is contained in:
@@ -51,6 +51,24 @@ extern unsigned long bus_base_sparse (void) __THROW __attribute__ ((const));
|
||||
extern int _hae_shift (void) __THROW __attribute__ ((const));
|
||||
extern int hae_shift (void) __THROW __attribute__ ((const));
|
||||
|
||||
/* Previous three are deprecated in favour of the following, which
|
||||
knows about multiple PCI "hoses". Provide the PCI bus and dfn
|
||||
numbers just as to pciconfig_read/write. */
|
||||
|
||||
enum __pciconfig_iobase_which
|
||||
{
|
||||
IOBASE_HOSE = 0, /* Return hose index. */
|
||||
IOBASE_SPARSE_MEM = 1, /* Return physical memory addresses. */
|
||||
IOBASE_DENSE_MEM = 2,
|
||||
IOBASE_SPARSE_IO = 3,
|
||||
IOBASE_DENSE_IO = 4
|
||||
};
|
||||
|
||||
extern long pciconfig_iobase(enum __pciconfig_iobase_which __which,
|
||||
unsigned long int __bus,
|
||||
unsigned long int __dfn)
|
||||
__THROW __attribute__ ((const));
|
||||
|
||||
/* Access PCI space protected from machine checks. */
|
||||
extern int pciconfig_read (unsigned long int __bus,
|
||||
unsigned long int __dfn,
|
||||
|
||||
Reference in New Issue
Block a user