powerpc/beatnik/include/bsp.h: Disable inport_ and outport_

The inport_[byte|word|long] and outport_[byte|word|long] methods
assume that the port is an address. The Beatnick definitions just
pass through the offset into IO Space. These are broken until they
do that. They do not appear to be used in anything this BSP actually
uses so disabling them works. Code is disabled with a lengthy comment
added if someone needs them to work in the future.
This commit is contained in:
Joel Sherrill
2025-08-01 16:44:56 -05:00
committed by Gedare Bloom
parent 0e81a0653a
commit 414181bf2c

View File

@@ -205,6 +205,16 @@ void BSP_pci_initialize(void);
#ifndef ASM
#if 0
/*
* These definitions are wrong because the in/out methods assume that
* the port is a real address. The shared drivers using the inport_
* and outport_ functions pass in IO Space offset values. These values
* can not and should not be cast to memory space pointers.
*
* If these turn out to be needed in the future, the Beatnick IO
* space base address will need to be added.
*/
#define outport_byte(port,value) outb(value,port)
#define outport_word(port,value) outw(value,port)
#define outport_long(port,value) outl(value,port)
@@ -212,6 +222,8 @@ void BSP_pci_initialize(void);
#define inport_byte(port,value) (value = inb(port))
#define inport_word(port,value) (value = inw(port))
#define inport_long(port,value) (value = inl(port))
#endif
/*
* Vital Board data Start using DATA RESIDUAL
*/