//functions.h //05/07/03 Josh Holtrop //for HOS //Modified: 10/30/03 extern dword _code; extern dword _bss; extern dword _end; inline void outportb(unsigned int port, unsigned char value); inline void outportw(unsigned int port, unsigned int value); inline byte inportb(unsigned short port); inline void enable_ints(); inline void disable_ints(); inline void restart(); inline void halt(); void remap_pics(int pic1, int pic2); inline void pic1_mask(byte mask); inline void pic2_mask(byte mask); inline void eoi(); inline void eoi2(); inline dword kernel_size(); inline void init_timer(); char *strcat(char *dest, char *src); int string_split(char *str, char delim); char *string_advance(char *str); void rtrim(char *str); char *ucase(char *str); char *lcase(char *str); inline byte bcd2byte(byte bcd); inline byte byte2bcd(byte bite); byte rtc_readDay(); byte rtc_readMonth(); byte rtc_readYear(); byte rtc_readSecond(); byte rtc_readMinute(); byte rtc_readHour(); void rtc_setDay(byte dat); void rtc_setMonth(byte month); void rtc_setYear(byte year); void rtc_setSecond(byte second); void rtc_setMinute(byte minute); void rtc_setHour(byte hour); byte cmos_getfd0(); byte cmos_getfd1(); byte cmos_gethd0(); byte cmos_gethd1();