/*
 * 5799-WZQ (C) COPYRIGHT IBM CORPORATION 1987,1988
 * LICENSED MATERIALS - PROPERTY OF IBM
 * REFER TO COPYRIGHT INSTRUCTIONS FORM NUMBER G120-2083
 */
/* $Header:fun_dcl.h 12.0$ */
/* $ACIS:fun_dcl.h 12.0$ */
/* $Source: /ibm/acis/usr/sys/pc_code/RCS/fun_dcl.h,v $ */

#if !defined(lint) && !defined(LOCORE) && defined(RCS_HDRS)
static char *rcsidfun_dcl = "$Header:fun_dcl.h 12.0$";
#endif

#ifndef ABIOS
/*global*/  int badblklookup(unsigned long ,struct bbt  *,unsigned short  *,unsigned short  *,unsigned short  *);
/*global*/  int bbtinit(unsigned short );
#else
/*global*/  int badblklookup(unsigned short, unsigned long ,unsigned long  *);
#endif
/*global*/  int bcd_unpack(char );
/*global*/  int blk2chs(unsigned short ,unsigned long ,unsigned short  *,unsigned short  *,unsigned short  *);
/*global*/  void cbcbreq(struct i_stack far *);
/*global*/  int change_defaults(void);
/*global*/  int check_kbd(int);
/*global*/  void clear_screen(void);
/*global*/  int cvttonum(char  *);
/*global*/  void delay(int );
/*global*/  int diskio(struct pcdpl  *);
/*global*/  void diskop(struct pcplq  *);
/*global*/  int format(struct pcdpl  *);
/*global*/  void getclock(void);
/*global*/  int getdiskgeometry(int ,int  *);
/*global*/  void init_cbcb(struct cbcb *);
/*global*/  int init_kbd(void);
/*global*/  void init_rmem(struct cbcb *, int );
/*global*/  void init_wind(unsigned short);
/*global*/  int io(int ,int ,int ,int ,int ,int ,char far *);
/*global*/  void kbdcmd(void);
/*global*/  void kbintr(unsigned short, struct i_stack far *);
/*global*/  void kbscan(unsigned short);
/*global*/  void kbsend(unsigned short,struct cbcb *);
/*global*/  int movein(unsigned long ,char far *,unsigned short );

/*global*/  int moveout(unsigned long ,char far *,unsigned short );
/*global*/  int mscmd(struct pcplq  *);
/*global*/  int msinit(void);
/*global*/  void pcdebug(void);
/*global*/  void pcpanic(char  *);
/*global*/  void pcstrategy(unsigned short ,unsigned long, struct cbcb * );
/*global*/  void printdescriptor(struct DESC far *);
/*global*/  int procbbt(int ,int ,int ,int ,int ,int ,char far *,int );
/*global*/  int rdump(unsigned long ,unsigned short ,char far *);
/*global*/  int readop(struct pcdpl  *);
/*global*/  void reboot(void);
/*global*/  int rompinit(unsigned short,unsigned long);
#ifndef __HIGHC__
/*global*/  void rompint3(int, int ,int ,int, struct cbcb *);
/*global*/  void rompint4(int, int ,int ,int, struct cbcb *);
#endif 
/*global*/  void rompstart(unsigned long );
/*global*/  int s8042_cmd(int );
/*global*/  void screen_trace(int );
/*global*/  void setcbcbvec(void);
/*global*/  void resetcbcbvec(void);
/*global*/  void setclock(struct pcplq  *);
/*global*/  void setints();
/*global*/  void setirqs(void);
/*global*/  void show_defaults(char *);

/*global*/  int smt(struct pcdpl  *);
/*global*/  int writeop(struct pcdpl  *);
/*global*/  void write_config(void);
/*global*/  long lcvttonum(char  *);
/*global*/  unsigned long chs2blk(unsigned short ,unsigned short ,unsigned short ,unsigned short );
/*global*/  unsigned long det_badsec(unsigned short ,unsigned short ,unsigned short ,unsigned short ,unsigned short );
/*global*/  unsigned long loadboot(unsigned short );
/*global*/  unsigned long physaddr(unsigned long ,unsigned short far *,unsigned short far *);
/*global*/  unsigned long segaddr(unsigned long );
/*global*/  unsigned long exchl(unsigned long);
/*global*/  int exchw(int);
static  int bbio(int ,int ,int ,int ,int ,int ,char far *);
/*global*/  int bpcifmove(int ,char far *,unsigned long ,unsigned short );
static  void clear_kbd(int );
static  int kbd_cmd(int );
/*global*/ void kbd_reset(int);
static  int mousecmd(unsigned short ,unsigned short );
static  int pcifmove(int ,char far *,unsigned long ,unsigned short );
static int queint(int ,int ,int ,struct intque *, struct cbcb *);
static  void set_kbd_led(char );
static  unsigned long set_window(int ,unsigned long );
/*global*/	int copy_data_in(char far *, struct pcdpl * );
/*global*/	int copy_data_out(char far *, struct pcdpl * );
