From: Richard Henderson <rth@twiddle.net>
To: axp-list@redhat.com
Subject: Re: FIX #2: XF-4.0 doesn't like my Permedia 2
Date: Fri, 17 Mar 2000 10:43:09 -0800 [thread overview]
Message-ID: <20000317104309.A3816@twiddle.net> (raw)
In-Reply-To: <38D24738.A2D3D586@civ.hw.ac.uk>
On Fri, Mar 17, 2000 at 02:54:48PM +0000, Hannes Reinecke wrote:
> It does work for 164SX-machines, should for 164LX. Miata is possible,
> but someone should send me an output of /proc/cpuinfo to incorporate it.
What if I go ahead and add the syscalls Jay and I talked about,
and you use those directly if they're available? New kernels
distribute faster than new libc's...
The new syscall would look like
enum pciconfig_iobase_which {
IOBASE_SPARSE_MEM = 1,
IOBASE_DENSE_MEM = 2,
IOBASE_SPARSE_IO = 3,
IOBASE_DENSE_IO = 4,
};
long pciconfig_iobase(enum pciconfig_iobase_which which,
unsigned long int __bus, unsigned long int __dfn);
I.e. you'd need pci information for the card you're interested in.
Which means we'll finally be able to support X on something other
than bus 0.
But supposing you get ENOSYS, you'll have to fall back on this:
> + if (sscanf(buf,"cpu model : %s ",cpu_model) == 1) {
> + if (!strcmp(cpu_model,"EV3") ||
> + !strcmp(cpu_model,"EV4") ||
> + !strcmp(cpu_model,"Simulate") ||
> + !strcmp(cpu_model,"LCA4") ||
> + !strcmp(cpu_model,"EV5") ||
> + !strcmp(cpu_model,"EV45") ) {
> + has_bwx = 0;
> + }
> + }
> + if (sscanf(buf,"system type : %s ",sys_type) == 1) {
> + if (strcmp(sys_type, "EB164")) {
> + can_bwa = 0;
> + } else {
> + can_bwa = 1;
> + }
> + }
> + if (sscanf(buf,"system variation : %s ",sys_var) == 1) {
> + if (!strcmp(sys_var,"EB164") ||
> + !strcmp(sys_var,"PC164") ) {
> + can_bwa = 0;
> + }
> + }
> + }
Rather than try and figure out whether or not bwx is or is not
supported, I think you should try to exactly identify PYXIS.
That'd be LX, SX, Miata, and Ruffian. The later two are listed
in the "system type" field.
> + xf86_axp_IOBase = _bus_base() + 0x200000000;
Moreover, once you've identified PYXIS, don't rely on glibc
continuing to return the CIA_DENSE_MEM region. Go ahead and
hard-code CIA_BW_MEM = 0x8800000000UL.
r~
next prev parent reply other threads:[~2000-03-17 18:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <38D24644.B5B3747F@civ.hw.ac.uk>
2000-03-17 14:54 ` FIX #2: XF-4.0 doesn't like my Permedia 2 Hannes Reinecke
2000-03-17 18:43 ` Richard Henderson [this message]
2000-03-18 2:34 ` Richard Henderson
2000-04-18 9:42 ` XFree86 4.0 Hannes Reinecke
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox