Re: Atari ROM port ISA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Apr 21, 2012 at 17:44, Michael Schmitz
<schmitzmic@xxxxxxxxxxxxxx> wrote:
If someone ever comes up with a way to hook up a fully featured ISA
slot to the ROM port (mapping ports 0x00 to 0x7f to IO and above to
mem access should be possible) we might revisit the code. For now,
anything except for 8 bit IO can be turned into dummy functions or
compile warnings.

Might be nice, if possible. But for now, that would indeed be
the way to go (and clean up code).

I've had a look at the NetUSBee docs and see that the USB part of it does
require 8 bit writes but little endian 16 bit reads. So we will need to
retain the 16 bit reads for potential USB support there.

OK. But you ain't gonna get the right 16 bits using

#define rom_in_be16(addr) \
        ({ u16 __v = (*(__force volatile u16 *) (addr)); __v >>= 8; __v; })
#define rom_in_le16(addr) \
        ({ u16 __v = le16_to_cpu(*(__force volatile u16 *) (addr));
__v >>= 8; __v; })

as they both do a 16-bit read and shift the result.
Perhaps it should just be a 32-bit read instead?
Are the schematics publicly available?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux