[openbeos] Re: is system_time(); an expensive call?
- From: François Revol <revol@xxxxxxx>
- To: openbeos@xxxxxxxxxxxxx
- Date: Sat, 17 May 2003 18:30:57 +0200 (CEST)
En réponse à Bruno van Dooren <bruno_van_dooren@xxxxxxxxxxx>:
> to implement actual PS2 communication in my driver i have to read and
> write
> to different io addresses.
> the keyboard addresses for input and output are 0x60 and 0x64.
>
> i suspect that i have to call map_physical_memory.
No,
at least not under x86.
in x86 IOs are _not_ memory accesses, you can't map the io space to
memory.
(but you'll have to do that for PPC).
The simplest is to use isa/pci->read/write_io_8(), which are
platform-independant, and not that much slower.
François.
- Follow-Ups:
- [openbeos] Re: IO space access
- From: Bruno van Dooren
- [openbeos] Re: is system_time(); an expensive call?
- From: Michael Noisternig
- References:
- [openbeos] Re: is system_time(); an expensive call?
- From: Axel Dörfler
- [openbeos] Re: is system_time(); an expensive call?
- From: Bruno van Dooren
Other related posts:
- » [openbeos] is system_time(); an expensive call?
- » [openbeos] Re: is system_time(); an expensive call?
- » [openbeos] Re: is system_time(); an expensive call?
- » [openbeos] Re: is system_time(); an expensive call?
- » [openbeos] Re: is system_time(); an expensive call?
- » [openbeos] Re: is system_time(); an expensive call?
- » [openbeos] Re: is system_time(); an expensive call?
- » [openbeos] Re: is system_time(); an expensive call?
- [openbeos] Re: IO space access
- From: Bruno van Dooren
- [openbeos] Re: is system_time(); an expensive call?
- From: Michael Noisternig
- [openbeos] Re: is system_time(); an expensive call?
- From: Axel Dörfler
- [openbeos] Re: is system_time(); an expensive call?
- From: Bruno van Dooren