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

@@ -158,7 +158,7 @@ extern void BSP_motload_pci_fixup(void);
#define BSP_I2C_DS1621_RAW_DEV_NAME (BSP_I2C_BUS0_NAME "." BSP_I2C_DS1621_RAW_NAME)
/* Initialize the I2C driver and register all devices
/* Initialize the I2C driver and register all devices
* RETURNS 0 on success, -1 on error.
*
* Access to the VPD and user EEPROMS as well
@@ -202,9 +202,19 @@ void BSP_pci_initialize(void);
* may be changed by application startup code (EPICS uses 11)
*/
#define BSP_EXCEPTION_NOTEPAD 14
#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
*/