diff options
author | nsouch <nsouch@FreeBSD.org> | 1999-01-10 16:41:14 +0000 |
---|---|---|
committer | nsouch <nsouch@FreeBSD.org> | 1999-01-10 16:41:14 +0000 |
commit | 15e93cc90313b3fdc94866c47d0bbe5404e835bc (patch) | |
tree | feb58bd3dd4ec26ccb4f52057453297b37a43cc0 /sys/i386/isa/ppcreg.h | |
parent | d66a1cb0301100ca00653d74bc27539c03a788c6 (diff) | |
download | FreeBSD-src-15e93cc90313b3fdc94866c47d0bbe5404e835bc.zip FreeBSD-src-15e93cc90313b3fdc94866c47d0bbe5404e835bc.tar.gz |
Fix broken low level ppb_rxxx() return type: char becomes u_char.
Submitted by: Bruce Evans <bde@zeta.org.au>
Some ppb bootup printfs simplified.
Diffstat (limited to 'sys/i386/isa/ppcreg.h')
-rw-r--r-- | sys/i386/isa/ppcreg.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/i386/isa/ppcreg.h b/sys/i386/isa/ppcreg.h index 829bfd1..c847e6c 100644 --- a/sys/i386/isa/ppcreg.h +++ b/sys/i386/isa/ppcreg.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ppcreg.h,v 1.5 1998/10/31 11:37:09 nsouch Exp $ + * $Id: ppcreg.h,v 1.6 1999/01/10 12:04:53 nsouch Exp $ * */ #ifndef __PPCREG_H @@ -122,14 +122,14 @@ struct ppc_data { #define PPC_DISABLE_INTR (PPC_SERVICE_INTR | PPC_nFAULT_INTR) #define PPC_ECR_RESET (PPC_ECR_PS2 | PPC_DISABLE_INTR) -#define r_dtr(ppc) ((char)inb((ppc)->ppc_base + PPC_SPP_DTR)) -#define r_str(ppc) ((char)inb((ppc)->ppc_base + PPC_SPP_STR)) -#define r_ctr(ppc) ((char)inb((ppc)->ppc_base + PPC_SPP_CTR)) -#define r_epp(ppc) ((char)inb((ppc)->ppc_base + PPC_EPP_DATA)) -#define r_cnfgA(ppc) ((char)inb((ppc)->ppc_base + PPC_ECP_CNFGA)) -#define r_cnfgB(ppc) ((char)inb((ppc)->ppc_base + PPC_ECP_CNFGB)) -#define r_ecr(ppc) ((char)inb((ppc)->ppc_base + PPC_ECP_ECR)) -#define r_fifo(ppc) ((char)inb((ppc)->ppc_base + PPC_ECP_D_FIFO)) +#define r_dtr(ppc) (inb((ppc)->ppc_base + PPC_SPP_DTR)) +#define r_str(ppc) (inb((ppc)->ppc_base + PPC_SPP_STR)) +#define r_ctr(ppc) (inb((ppc)->ppc_base + PPC_SPP_CTR)) +#define r_epp(ppc) (inb((ppc)->ppc_base + PPC_EPP_DATA)) +#define r_cnfgA(ppc) (inb((ppc)->ppc_base + PPC_ECP_CNFGA)) +#define r_cnfgB(ppc) (inb((ppc)->ppc_base + PPC_ECP_CNFGB)) +#define r_ecr(ppc) (inb((ppc)->ppc_base + PPC_ECP_ECR)) +#define r_fifo(ppc) (inb((ppc)->ppc_base + PPC_ECP_D_FIFO)) #define w_dtr(ppc,byte) outb((ppc)->ppc_base + PPC_SPP_DTR, byte) #define w_str(ppc,byte) outb((ppc)->ppc_base + PPC_SPP_STR, byte) |