Remove double-blank lines (Al)

This commit is contained in:
Ben Gras 2005-08-22 15:17:42 +00:00
parent 3aca81a22a
commit e2e90b1fdc
40 changed files with 7 additions and 361 deletions

View File

@ -29,7 +29,6 @@
#include <ibm/int86.h>
#include <assert.h>
#define ME "BIOS_WINI"
/* Error codes */
@ -91,7 +90,6 @@ PRIVATE struct driver w_dtab = {
nop_other /* catch-all for unrecognized commands and ioctls */
};
/*===========================================================================*
* bios_winchester_task *
*===========================================================================*/
@ -107,7 +105,6 @@ PUBLIC int main()
driver_task(&w_dtab);
}
/*===========================================================================*
* w_prepare *
*===========================================================================*/
@ -133,7 +130,6 @@ int device;
return(w_dv);
}
/*===========================================================================*
* w_name *
*===========================================================================*/
@ -146,7 +142,6 @@ PRIVATE char *w_name()
return name;
}
/*===========================================================================*
* w_transfer *
*===========================================================================*/
@ -309,7 +304,6 @@ unsigned nr_req; /* length of request vector */
return(OK);
}
/*============================================================================*
* w_do_open *
*============================================================================*/
@ -332,7 +326,6 @@ message *m_ptr;
return(OK);
}
/*============================================================================*
* w_do_close *
*============================================================================*/
@ -347,7 +340,6 @@ message *m_ptr;
return(OK);
}
/*===========================================================================*
* w_init *
*===========================================================================*/
@ -471,7 +463,6 @@ PRIVATE void w_init()
}
}
/*============================================================================*
* w_geometry *
*============================================================================*/

View File

@ -31,7 +31,6 @@ FORWARD _PROTOTYPE( int get_cmostime, (struct tm *tmp, int y2kflag));
FORWARD _PROTOTYPE( int dec_to_bcd, (int dec));
FORWARD _PROTOTYPE( int bcd_to_dec, (int bcd));
/*===========================================================================*
* main *
*===========================================================================*/
@ -110,7 +109,6 @@ PUBLIC void main(void)
}
}
/*===========================================================================*
* reply *
*===========================================================================*/
@ -126,7 +124,6 @@ PRIVATE void reply(int code, int replyee, int process, int status)
panic("CMOS", "sending reply failed", s);
}
/*===========================================================================*
* gettime *
*===========================================================================*/
@ -172,7 +169,6 @@ PRIVATE int gettime(int who, int y2kflag, vir_bytes dst_time)
return(OK);
}
PRIVATE int get_cmostime(struct tm *t, int y2kflag)
{
/* Update the structure pointed to by time with the current time as read

View File

@ -28,7 +28,6 @@ _PROTOTYPE(static void el2_init, (dpeth_t *dep));
_PROTOTYPE(static void el2_stop, (dpeth_t *dep));
_PROTOTYPE( static void milli_delay, (unsigned long millis) );
/*===========================================================================*
* el2_init *
*===========================================================================*/
@ -118,7 +117,6 @@ dpeth_t * dep;
}
}
/*===========================================================================*
* el2_stop *
*===========================================================================*/
@ -134,7 +132,6 @@ dpeth_t * dep;
return;
}
/*===========================================================================*
* el2_probe *
*===========================================================================*/

View File

@ -235,7 +235,6 @@ int main(int argc, char *argv[])
}
}
#if 0
/*===========================================================================*
* dp8390_dump *
@ -289,7 +288,6 @@ void dp8390_dump()
}
#endif
/*===========================================================================*
* dp8390_stop *
*===========================================================================*/
@ -460,7 +458,6 @@ int vectored;
assert(dep->de_flags & DEF_ENABLED);
}
/*===========================================================================*
* do_vread *
*===========================================================================*/
@ -529,7 +526,6 @@ int vectored;
reply(dep, OK, FALSE);
}
/*===========================================================================*
* do_init *
*===========================================================================*/
@ -614,7 +610,6 @@ dpeth_t *dep;
reply(dep, OK, TRUE);
}
/*===========================================================================*
* do_getstat *
*===========================================================================*/
@ -648,7 +643,6 @@ message *mp;
reply(dep, OK, FALSE);
}
/*===========================================================================*
* do_stop *
*===========================================================================*/
@ -676,7 +670,6 @@ message *mp;
dep->de_flags= DEF_EMPTY;
}
/*===========================================================================*
* dp_init *
*===========================================================================*/
@ -803,7 +796,6 @@ dpeth_t *dep;
}
}
/*===========================================================================*
* dp_confaddr *
*===========================================================================*/
@ -832,7 +824,6 @@ dpeth_t *dep;
if (i != 0 && i != 6) env_panic(eakey); /* It's all or nothing */
}
/*===========================================================================*
* dp_reinit *
*===========================================================================*/
@ -853,7 +844,6 @@ dpeth_t *dep;
outb_reg0(dep, DP_RCR, dp_rcr_reg);
}
/*===========================================================================*
* dp_reset *
*===========================================================================*/
@ -888,7 +878,6 @@ dpeth_t *dep;
dep->de_flags &= ~DEF_STOPPED;
}
/*===========================================================================*
* dp_check_ints *
*===========================================================================*/
@ -1035,7 +1024,6 @@ dpeth_t *dep;
}
}
/*===========================================================================*
* dp_recv *
*===========================================================================*/
@ -1125,7 +1113,6 @@ dpeth_t *dep;
while (!packet_processed);
}
/*===========================================================================*
* dp_send *
*===========================================================================*/
@ -1146,7 +1133,6 @@ dpeth_t *dep;
}
}
/*===========================================================================*
* dp_getblock *
*===========================================================================*/
@ -1168,7 +1154,6 @@ void *dst;
panic("DP8390", "dp_getblock: sys_vircopy failed", r);
}
/*===========================================================================*
* dp_pio8_getblock *
*===========================================================================*/
@ -1189,7 +1174,6 @@ void *dst;
insb(dep->de_data_port, dst, size);
}
/*===========================================================================*
* dp_pio16_getblock *
*===========================================================================*/
@ -1211,7 +1195,6 @@ void *dst;
insw(dep->de_data_port, dst, size);
}
/*===========================================================================*
* dp_pkt2user *
*===========================================================================*/
@ -1250,7 +1233,6 @@ int page, length;
return OK;
}
/*===========================================================================*
* dp_user2nic *
*===========================================================================*/
@ -1299,7 +1281,6 @@ vir_bytes count;
assert(count == 0);
}
/*===========================================================================*
* dp_pio8_user2nic *
*===========================================================================*/
@ -1359,7 +1340,6 @@ vir_bytes count;
}
}
/*===========================================================================*
* dp_pio16_user2nic *
*===========================================================================*/
@ -1471,7 +1451,6 @@ vir_bytes count;
}
}
/*===========================================================================*
* dp_nic2user *
*===========================================================================*/
@ -1520,7 +1499,6 @@ vir_bytes count;
assert(count == 0);
}
/*===========================================================================*
* dp_pio8_nic2user *
*===========================================================================*/
@ -1568,7 +1546,6 @@ vir_bytes count;
assert(count == 0);
}
/*===========================================================================*
* dp_pio16_nic2user *
*===========================================================================*/
@ -1666,7 +1643,6 @@ vir_bytes count;
assert(count == 0);
}
/*===========================================================================*
* dp_next_iovec *
*===========================================================================*/
@ -1684,7 +1660,6 @@ iovec_dat_t *iovp;
sizeof(iovec_t), iovp->iod_iovec);
}
/*===========================================================================*
* conf_hw *
*===========================================================================*/
@ -1717,7 +1692,6 @@ dpeth_t *dep;
dep->de_stat = empty_stat;
}
/*===========================================================================*
* update_conf *
*===========================================================================*/
@ -1769,7 +1743,6 @@ dp_conf_t *dcp;
dep->de_ramsize= v;
}
/*===========================================================================*
* calc_iovec_size *
*===========================================================================*/
@ -1798,7 +1771,6 @@ iovec_dat_t *iovp;
return size;
}
/*===========================================================================*
* reply *
*===========================================================================*/
@ -1840,7 +1812,6 @@ int may_block;
dep->de_flags &= ~(DEF_PACK_SEND | DEF_PACK_RECV);
}
/*===========================================================================*
* mess_reply *
*===========================================================================*/
@ -1852,7 +1823,6 @@ message *reply_mess;
panic("", "dp8390: unable to mess_reply", NO_NUM);
}
/*===========================================================================*
* get_userdata *
*===========================================================================*/
@ -1870,7 +1840,6 @@ void *loc_addr;
panic("DP8390", "get_userdata: sys_vircopy failed", r);
}
/*===========================================================================*
* put_userdata *
*===========================================================================*/
@ -1974,7 +1943,6 @@ static void do_vir_outsw(port_t port, int proc, vir_bytes buf, size_t size)
panic("DP8390", "sys_sdevio failed", r);
}
/*
* $PchId: dp8390.c,v 1.25 2005/02/10 17:32:07 philip Exp $
*/

View File

@ -152,7 +152,6 @@ Created: before Dec 28, 1992 by Philip Homburg
#define RSR_DIS 0x40 /* Receiver Disabled */
#define RSR_DFR 0x80 /* In later manuals: Deferring */
typedef struct dp_rcvhdr
{
u8_t dr_status; /* Copy of rsr */

View File

@ -119,7 +119,6 @@ dpeth_t *dep;
return 0;
}
/*===========================================================================*
* ne_init *
*===========================================================================*/
@ -197,7 +196,6 @@ dpeth_t *dep;
}
}
/*===========================================================================*
* test_8 *
*===========================================================================*/
@ -250,7 +248,6 @@ u8_t *pat;
return r;
}
/*===========================================================================*
* test_16 *
*===========================================================================*/
@ -307,7 +304,6 @@ u8_t *pat;
return r;
}
/*===========================================================================*
* ne_stop *
*===========================================================================*/

View File

@ -58,7 +58,6 @@ dpeth_t *dep;
return 1;
}
/*===========================================================================*
* we_init *
*===========================================================================*/
@ -252,7 +251,6 @@ dpeth_t *dep;
dep->de_stoppage= dep->de_ramsize / DP_PAGESIZE;
}
/*===========================================================================*
* we_stop *
*===========================================================================*/
@ -265,7 +263,6 @@ dpeth_t *dep;
outb_we(dep, EPL_MSR, 0);
}
/*===========================================================================*
* we_aliasing *
*===========================================================================*/
@ -288,7 +285,6 @@ dpeth_t *dep;
return 1;
}
/*===========================================================================*
* we_interface_chip *
*===========================================================================*/
@ -306,7 +302,6 @@ dpeth_t *dep;
return 1;
}
/*===========================================================================*
* we_16bitboard *
*===========================================================================*/
@ -337,7 +332,6 @@ dpeth_t *dep;
return (icr & E_ICR_16BIT);
}
/*===========================================================================*
* we_16bitslot *
*===========================================================================*/
@ -348,7 +342,6 @@ dpeth_t *dep;
return !!(inb_we(dep, EPL_ICR) & E_ICR_16BIT);
}
/*===========================================================================*
* we_ultra *
*===========================================================================*/

View File

@ -84,7 +84,6 @@ Created: before Dec 28, 1992 by Philip Homburg
#define E_790_GCR_IR1 0x08 /* bit 1 of encoded IRQ */
#define E_790_GCR_IR2 0x40 /* bit 2 of encoded IRQ */
#define inb_we(dep, reg) (inb(dep->de_base_port+reg))
#define outb_we(dep, reg, data) (outb(dep->de_base_port+reg, data))

View File

@ -6,6 +6,9 @@
** National Semiconductor NS 8390 Network Interface Controller
**
** $Log$
** Revision 1.2 2005/08/22 15:17:40 beng
** Remove double-blank lines (Al)
**
** Revision 1.1 2005/06/29 10:16:46 beng
** Import of dpeth 3c501/3c509b/.. ethernet driver by
** Giovanni Falzoni <fgalzoni@inwind.it>.
@ -16,7 +19,6 @@
** $Id$
*/
#define DP_PAGESIZE 256 /* NS 8390 page size */
#define SENDQ_PAGES 6 /* SENDQ_PAGES * DP_PAGESIZE >= 1514 bytes */

View File

@ -547,7 +547,6 @@ PUBLIC int main(int argc, char **argv)
if ((fkey_map(&fkeys, &sfkeys)) != OK)
printf("%s: couldn't program Shift+F8 key (%d)\n", DevName, errno);
#ifdef ETH_IGN_PROTO
{
static u16_t eth_ign_proto = 0;
@ -624,5 +623,4 @@ PUBLIC int main(int argc, char **argv)
return OK; /* Never reached, but keeps compiler happy */
}
/** dp.c **/

View File

@ -285,7 +285,6 @@ dpeth_t *dep;
return 1;
}
/*===========================================================================*
* we_16bitslot *
*===========================================================================*/

View File

@ -5,6 +5,9 @@
** $PchId: wdeth.h,v 1.4 1995/12/22 08:36:57 philip Exp $
**
** $Log$
** Revision 1.2 2005/08/22 15:17:40 beng
** Remove double-blank lines (Al)
**
** Revision 1.1 2005/06/29 10:16:46 beng
** Import of dpeth 3c501/3c509b/.. ethernet driver by
** Giovanni Falzoni <fgalzoni@inwind.it>.
@ -94,7 +97,6 @@
#define E_790_GCR_IR1 0x08 /* bit 1 of encoded IRQ */
#define E_790_GCR_IR2 0x40 /* bit 2 of encoded IRQ */
#define inb_we(dep, reg) (inb(dep->de_base_port+reg))
#define outb_we(dep, reg, data) (outb(dep->de_base_port+reg, data))

View File

@ -263,7 +263,6 @@ FORWARD _PROTOTYPE( void floppy_stop, (struct driver *dp, message *m_ptr) );
FORWARD _PROTOTYPE( int test_read, (int density) );
FORWARD _PROTOTYPE( void f_geometry, (struct partition *entry));
/* Entry points to this driver. */
PRIVATE struct driver f_dtab = {
f_name, /* current device's name */
@ -281,7 +280,6 @@ PRIVATE struct driver f_dtab = {
NULL
};
/*===========================================================================*
* floppy_task *
*===========================================================================*/
@ -314,7 +312,6 @@ PUBLIC void main()
driver_task(&f_dtab);
}
/*===========================================================================*
* f_expire_tmrs *
*===========================================================================*/
@ -402,7 +399,6 @@ int device;
return f_dv;
}
/*===========================================================================*
* f_name *
*===========================================================================*/
@ -415,7 +411,6 @@ PRIVATE char *f_name()
return name;
}
/*===========================================================================*
* f_cleanup *
*===========================================================================*/
@ -429,7 +424,6 @@ PRIVATE void f_cleanup()
f_fp->fl_sector = NO_SECTOR;
}
/*===========================================================================*
* f_transfer *
*===========================================================================*/
@ -631,7 +625,6 @@ unsigned nr_req; /* length of request vector */
return(OK);
}
/*===========================================================================*
* dma_setup *
*===========================================================================*/
@ -677,7 +670,6 @@ int opcode; /* DEV_GATHER or DEV_SCATTER */
return(OK);
}
/*===========================================================================*
* start_motor *
*===========================================================================*/
@ -723,7 +715,6 @@ PRIVATE void start_motor()
f_fp->fl_sector = NO_SECTOR;
}
/*===========================================================================*
* stop_motor *
*===========================================================================*/
@ -739,7 +730,6 @@ timer_t *tp;
panic("FLOPPY","Sys_outb in stop_motor() failed", s);
}
/*===========================================================================*
* floppy_stop *
*===========================================================================*/
@ -755,7 +745,6 @@ PRIVATE void floppy_stop(struct driver *dp, message *m_ptr)
}
}
/*===========================================================================*
* seek *
*===========================================================================*/
@ -811,7 +800,6 @@ PRIVATE int seek()
return(OK);
}
/*===========================================================================*
* fdc_transfer *
*===========================================================================*/
@ -885,7 +873,6 @@ int opcode; /* DEV_GATHER or DEV_SCATTER */
return(OK);
}
/*==========================================================================*
* fdc_results *
*==========================================================================*/
@ -934,8 +921,6 @@ PRIVATE int fdc_results()
return(ERR_STATUS);
}
/*===========================================================================*
* fdc_command *
*===========================================================================*/
@ -960,7 +945,6 @@ int len; /* command length */
return(need_reset ? ERR_DRIVE : OK);
}
/*===========================================================================*
* fdc_out *
*===========================================================================*/
@ -993,7 +977,6 @@ int val; /* write this byte to floppy disk controller */
panic("FLOPPY","Sys_outb in fdc_out() failed", s);
}
/*===========================================================================*
* recalibrate *
*===========================================================================*/
@ -1036,7 +1019,6 @@ PRIVATE int recalibrate()
}
}
/*===========================================================================*
* f_reset *
*===========================================================================*/
@ -1103,7 +1085,6 @@ PRIVATE void f_reset()
prev_dp = NULL;
}
/*===========================================================================*
* f_intr_wait *
*===========================================================================*/
@ -1154,7 +1135,6 @@ timer_t *tp;
}
}
/*==========================================================================*
* read_id *
*==========================================================================*/
@ -1188,7 +1168,6 @@ PRIVATE int read_id()
return(OK);
}
/*==========================================================================*
* f_do_open *
*==========================================================================*/
@ -1250,7 +1229,6 @@ message *m_ptr; /* pointer to open message */
return(EIO); /* nothing worked */
}
/*==========================================================================*
* test_read *
*==========================================================================*/
@ -1281,7 +1259,6 @@ int density;
return(OK);
}
/*============================================================================*
* f_geometry *
*============================================================================*/

View File

@ -252,7 +252,6 @@ _PROTOTYPE( static u32_t do_inl, (port_t port) );
_PROTOTYPE( static void do_outb, (port_t port, u8_t v) );
_PROTOTYPE( static void do_outl, (port_t port, u32_t v) );
/*===========================================================================*
* main *
*===========================================================================*/
@ -323,7 +322,6 @@ int main(void)
}
}
/*===========================================================================*
* fxp_init *
*===========================================================================*/
@ -395,7 +393,6 @@ message *mp;
mess_reply(mp, &reply_mess);
}
/*===========================================================================*
* fxp_pci_conf *
*===========================================================================*/
@ -463,7 +460,6 @@ static void fxp_pci_conf()
}
}
/*===========================================================================*
* fxp_probe *
*===========================================================================*/
@ -600,7 +596,6 @@ fxp_t *fp;
return TRUE;
}
/*===========================================================================*
* fxp_conf_hw *
*===========================================================================*/
@ -719,7 +714,6 @@ fxp_t *fp;
#endif
}
/*===========================================================================*
* fxp_init_hw *
*===========================================================================*/
@ -784,7 +778,6 @@ fxp_t *fp;
}
}
/*===========================================================================*
* fxp_init_buf *
*===========================================================================*/
@ -878,7 +871,6 @@ fxp_t *fp;
fp->fxp_tx_idle= 1;
}
/*===========================================================================*
* fxp_reset_hw *
*===========================================================================*/
@ -904,7 +896,6 @@ fxp_t *fp;
fxp_ru_ptr_cmd(fp, SC_RU_LOAD_BASE, 0, TRUE /* check idle */);
}
/*===========================================================================*
* fxp_confaddr *
*===========================================================================*/
@ -1017,7 +1008,6 @@ fxp_t *fp;
}
}
/*===========================================================================*
* fxp_writev *
*===========================================================================*/
@ -1079,7 +1069,6 @@ int vectored;
txp= &fp->fxp_tx_buf[fxp_tx_head];
}
assert(!(fp->fxp_flags & FF_SEND_AVAIL));
assert(!(fp->fxp_flags & FF_PACK_SENT));
@ -1179,7 +1168,6 @@ suspend:
reply(fp, OK, FALSE);
}
/*===========================================================================*
* fxp_readv *
*===========================================================================*/
@ -1360,7 +1348,6 @@ suspend:
reply(fp, OK, FALSE);
}
/*===========================================================================*
* fxp_do_conf *
*===========================================================================*/
@ -1399,7 +1386,6 @@ fxp_t *fp;
}
/*===========================================================================*
* fxp_cu_ptr_cmd *
*===========================================================================*/
@ -1440,7 +1426,6 @@ int check_idle;
panic("FXP","fxp_cu_ptr_cmd: CU does not accept command", NO_NUM);
}
/*===========================================================================*
* fxp_ru_ptr_cmd *
*===========================================================================*/
@ -1478,7 +1463,6 @@ int check_idle;
panic("FXP","fxp_ru_ptr_cmd: RU does not accept command", NO_NUM);
}
/*===========================================================================*
* fxp_restart_ru *
*===========================================================================*/
@ -1512,7 +1496,6 @@ fxp_t *fp;
FALSE /* do not check idle */);
}
/*===========================================================================*
* fxp_getstat *
*===========================================================================*/
@ -1588,7 +1571,6 @@ message *mp;
reply(fp, OK, FALSE);
}
/*===========================================================================*
* fxp_handler *
*===========================================================================*/
@ -1647,7 +1629,6 @@ fxp_t *fp;
return 1;
}
/*===========================================================================*
* fxp_check_ints *
*===========================================================================*/
@ -1798,7 +1779,6 @@ fxp_t *fp;
reply(fp, OK, TRUE);
}
/*===========================================================================*
* fxp_watchdog_f *
*===========================================================================*/
@ -1849,7 +1829,6 @@ timer_t *tp;
}
}
/*===========================================================================*
* fxp_link_changed *
*===========================================================================*/
@ -1864,7 +1843,6 @@ fxp_t *fp;
return (fp->fxp_mii_scr != scr);
}
/*===========================================================================*
* fxp_report_link *
*===========================================================================*/
@ -1926,7 +1904,6 @@ fxp_t *fp;
return;
}
oui= (mii_id1 << MII_PH_OUI_H_C_SHIFT) |
((mii_id2 & MII_PL_OUI_L_MASK) >> MII_PL_OUI_L_SHIFT);
model= ((mii_id2 & MII_PL_MODEL_MASK) >> MII_PL_MODEL_SHIFT);
@ -2110,7 +2087,6 @@ resspeed:
;
}
/*===========================================================================*
* fxp_stop *
*===========================================================================*/
@ -2128,7 +2104,6 @@ static void fxp_stop()
continue;
port= fp->fxp_base_port;
/* Reset device */
if (debug)
printf("%s: resetting device\n", fp->fxp_name);
@ -2137,7 +2112,6 @@ static void fxp_stop()
sys_exit(0);
}
/*===========================================================================*
* reply *
*===========================================================================*/
@ -2184,7 +2158,6 @@ int may_block;
fp->fxp_flags &= ~(FF_PACK_SENT | FF_PACK_RECV);
}
/*===========================================================================*
* mess_reply *
*===========================================================================*/
@ -2196,7 +2169,6 @@ message *reply_mess;
panic("FXP","fxp: unable to mess_reply", NO_NUM);
}
/*===========================================================================*
* put_userdata *
*===========================================================================*/
@ -2214,7 +2186,6 @@ void *loc_addr;
panic("FXP","put_userdata: sys_vircopy failed", r);
}
/*===========================================================================*
* eeprom_read *
*===========================================================================*/
@ -2275,7 +2246,6 @@ int reg;
return v;
}
/*===========================================================================*
* eeprom_addrsize *
*===========================================================================*/
@ -2334,7 +2304,6 @@ fxp_t *fp;
#endif
}
/*===========================================================================*
* mii_read *
*===========================================================================*/
@ -2408,7 +2377,6 @@ tmr_func_t watchdog; /* watchdog function to be called */
}
}
/*===========================================================================*
* fxp_expire_tmrs *
*===========================================================================*/
@ -2486,7 +2454,6 @@ static void do_outl(port_t port, u32_t value)
panic("FXP","sys_outl failed", r);
}
/*
* $PchId: fxp.c,v 1.4 2005/01/31 22:10:37 philip Exp $
*/

View File

@ -260,7 +260,6 @@ struct cbl_conf
*/
#define CCB7_DSRF 0x01 /* Discard Short Receive Frames. */
/* Byte 8 */
#define CCB8_CSMAD 0x80 /* CSMA Disable. Reserved on 82557, should be
* set to zero.

View File

@ -11,10 +11,8 @@ Media Independent (Ethernet) Interface functions
#include "config.h"
#endif
#include "mii.h"
/*===========================================================================*
* mii_print_stat_speed *
*===========================================================================*/
@ -118,7 +116,6 @@ u16_t extstat;
}
}
/*===========================================================================*
* mii_print_techab *
*===========================================================================*/

View File

@ -39,7 +39,6 @@
#include <sys/ioc_disk.h>
#include "driver.h"
#if (CHIP == INTEL)
#if USE_EXTRA_DMA_BUF && DMA_BUF_SIZE < 2048
@ -135,7 +134,6 @@ struct driver *dp; /* Device dependent entry points. */
}
}
/*===========================================================================*
* init_buffer *
*===========================================================================*/
@ -160,7 +158,6 @@ PRIVATE void init_buffer()
#endif /* CHIP == INTEL */
}
/*===========================================================================*
* do_rdwt *
*===========================================================================*/
@ -195,7 +192,6 @@ message *mp; /* pointer to read or write message */
return(r == OK ? (mp->COUNT - iovec1.iov_size) : r);
}
/*==========================================================================*
* do_vrdwt *
*==========================================================================*/
@ -244,7 +240,6 @@ message *mp; /* pointer to read or write message */
return(r);
}
/*===========================================================================*
* no_name *
*===========================================================================*/
@ -260,7 +255,6 @@ PUBLIC char *no_name()
return name;
}
/*============================================================================*
* do_nop *
*============================================================================*/
@ -315,7 +309,6 @@ PUBLIC void nop_cleanup()
/* Nothing to clean up. */
}
/*===========================================================================*
* nop_cancel *
*===========================================================================*/
@ -332,9 +325,6 @@ PUBLIC int nop_select(struct driver *dr, message *m)
/* Nothing to do for select. */
}
/*============================================================================*
* do_diocntl *
*============================================================================*/

View File

@ -8,7 +8,6 @@
#include "drvlib.h"
#include <unistd.h>
/* Extended partition? */
#define ext_part(s) ((s) == 0x05 || (s) == 0x0F)
@ -20,7 +19,6 @@ FORWARD _PROTOTYPE( int get_iso_fake_part_table, (struct driver *dp, int device,
unsigned long offset, struct part_entry *table) );
FORWARD _PROTOTYPE( void sort, (struct part_entry *table) );
/*============================================================================*
* partition *
*============================================================================*/
@ -147,7 +145,6 @@ unsigned long extbase; /* sector offset of the base extended partition */
} while ((offset = nextoffset) != 0);
}
/*============================================================================*
* get_part_table *
*============================================================================*/
@ -243,7 +240,6 @@ struct part_entry *table; /* four entries */
return 1;
}
/*===========================================================================*
* sort *
*===========================================================================*/

View File

@ -22,7 +22,6 @@ Created: Jan 2000 by Philip Homburg <philip@cs.vu.nl>
#include "config.h"
#endif
#if !__minix_vmd
#define irq_mode_pci(irq) ((void)0)
#endif
@ -146,7 +145,6 @@ PUBLIC void pci_outl(U16_t port, U32_t value) {
printf("PCI: warning, sys_outl failed: %d\n", s);
}
/*===========================================================================*
* pci_init *
*===========================================================================*/
@ -167,7 +165,6 @@ PUBLIC void pci_init()
env_parse("pci_debug", "d", 0, &v, 0, 1);
debug= v;
/* We don't expect to interrupted */
assert(first_time == 1);
first_time= -1;
@ -208,7 +205,6 @@ int *devindp;
return 1;
}
/*===========================================================================*
* pci_first_dev *
*===========================================================================*/
@ -232,7 +228,6 @@ u16_t *didp;
return 1;
}
/*===========================================================================*
* pci_next_dev *
*===========================================================================*/
@ -256,7 +251,6 @@ u16_t *didp;
return 1;
}
/*===========================================================================*
* pci_reserve *
*===========================================================================*/
@ -268,7 +262,6 @@ int devind;
pcidev[devind].pd_inuse= 1;
}
/*===========================================================================*
* pci_ids *
*===========================================================================*/
@ -282,7 +275,6 @@ u16_t *didp;
*didp= pcidev[devind].pd_did;
}
/*===========================================================================*
* pci_slot_name *
*===========================================================================*/
@ -327,7 +319,6 @@ u16_t did;
return NULL;
}
/*===========================================================================*
* pci_attr_r8 *
*===========================================================================*/
@ -341,7 +332,6 @@ int port;
return pcibus[busind].pb_rreg8(busind, devind, port);
}
/*===========================================================================*
* pci_attr_r16 *
*===========================================================================*/
@ -355,7 +345,6 @@ int port;
return pcibus[busind].pb_rreg16(busind, devind, port);
}
/*===========================================================================*
* pci_attr_r32 *
*===========================================================================*/
@ -369,7 +358,6 @@ int port;
return pcibus[busind].pb_rreg32(busind, devind, port);
}
/*===========================================================================*
* pci_attr_w16 *
*===========================================================================*/
@ -384,7 +372,6 @@ u16_t value;
pcibus[busind].pb_wreg16(busind, devind, port, value);
}
/*===========================================================================*
* pci_attr_w32 *
*===========================================================================*/
@ -399,7 +386,6 @@ u32_t value;
pcibus[busind].pb_wreg32(busind, devind, port, value);
}
/*===========================================================================*
* pci_intel_init *
*===========================================================================*/
@ -493,7 +479,6 @@ PRIVATE void pci_intel_init()
do_pcibridge(busind);
}
/*===========================================================================*
* probe_bus *
*===========================================================================*/
@ -600,7 +585,6 @@ printf("probe_bus(%d)\n", busind);
}
}
/*===========================================================================*
* do_isabridge *
*===========================================================================*/
@ -699,7 +683,6 @@ int busind;
return 0;
}
/*===========================================================================*
* do_pcibridge *
*===========================================================================*/
@ -774,7 +757,6 @@ int busind;
}
}
/*===========================================================================*
* do_piix *
*===========================================================================*/
@ -885,7 +867,6 @@ int devind;
return 0;
}
/*===========================================================================*
* do_sis_isabr *
*===========================================================================*/
@ -916,7 +897,6 @@ int devind;
return 0;
}
/*===========================================================================*
* do_via_isabr *
*===========================================================================*/
@ -976,7 +956,6 @@ int devind;
return 0;
}
/*===========================================================================*
* pci_vid_name *
*===========================================================================*/
@ -1074,7 +1053,6 @@ char *end;
**str= '\0';
}
/*===========================================================================*
* pci_attr_rsts *
*===========================================================================*/
@ -1100,7 +1078,6 @@ int busind;
return pci_attr_r16(devind, PPB_SSTS);
}
/*===========================================================================*
* pcibr_intel_wsts *
*===========================================================================*/
@ -1118,7 +1095,6 @@ u16_t value;
pci_attr_w16(devind, PPB_SSTS, value);
}
/*===========================================================================*
* pcibr_via_rsts *
*===========================================================================*/
@ -1131,7 +1107,6 @@ int busind;
return 0;
}
/*===========================================================================*
* pcibr_via_wsts *
*===========================================================================*/
@ -1148,7 +1123,6 @@ u16_t value;
#endif
}
/*===========================================================================*
* pci_attr_wsts *
*===========================================================================*/
@ -1192,7 +1166,6 @@ int port;
return v;
}
/*===========================================================================*
* pcii_rreg16 *
*===========================================================================*/
@ -1222,7 +1195,6 @@ int port;
return v;
}
/*===========================================================================*
* pcii_rreg32 *
*===========================================================================*/
@ -1252,7 +1224,6 @@ int port;
return v;
}
/*===========================================================================*
* pcii_wreg16 *
*===========================================================================*/
@ -1280,7 +1251,6 @@ u16_t value;
#endif
}
/*===========================================================================*
* pcii_wreg32 *
*===========================================================================*/
@ -1308,7 +1278,6 @@ u32_t value;
#endif
}
/*===========================================================================*
* pcii_rsts *
*===========================================================================*/
@ -1328,7 +1297,6 @@ int busind;
return v;
}
/*===========================================================================*
* pcii_wsts *
*===========================================================================*/

View File

@ -4,7 +4,6 @@ pci.h
Created: Jan 2000 by Philip Homburg <philip@cs.vu.nl>
*/
/* tempory functions: to be replaced later (see pci_intel.h) */
_PROTOTYPE( unsigned pci_inb, (U16_t port) );
_PROTOTYPE( unsigned pci_inw, (U16_t port) );
@ -30,7 +29,6 @@ _PROTOTYPE( u32_t pci_attr_r32, (int devind, int port) );
_PROTOTYPE( void pci_attr_w16, (int devind, int port, U16_t value) );
_PROTOTYPE( void pci_attr_w32, (int devind, int port, u32_t value) );
#define PCI_VID 0x00 /* Vendor ID, 16-bit */
#define PCI_DID 0x02 /* Device ID, 16-bit */
#define PCI_CR 0x04 /* Command Register, 16-bit */

View File

@ -19,7 +19,6 @@ See the Linux PCI ID Repository <http://pciids.sourceforge.net/>.
#include "config.h"
#endif
struct pci_vendor pci_vendor_table[]=
{
{ 0x1000, "NCR" },

View File

@ -15,7 +15,6 @@
#include "../../kernel/config.h"
#include "../../kernel/type.h"
/*==========================================================================*
* do_new_kmess *
*==========================================================================*/
@ -65,7 +64,6 @@ message *m; /* notification message */
return EDONTREPLY;
}
/*===========================================================================*
* do_diagnostics *
*===========================================================================*/

View File

@ -9,7 +9,6 @@
#include "log.h"
/*===========================================================================*
* kputc *
*===========================================================================*/

View File

@ -75,7 +75,6 @@ PUBLIC void main(void)
driver_task(&log_dtab);
}
/*===========================================================================*
* log_name *
*===========================================================================*/
@ -86,7 +85,6 @@ PRIVATE char *log_name()
return name;
}
/*===========================================================================*
* log_prepare *
*===========================================================================*/

View File

@ -29,7 +29,6 @@ struct logdevice {
log_select_alerted, log_select_ready_ops;
};
/* Function prototypes. */
_PROTOTYPE( void kputc, (int c) );
_PROTOTYPE( int do_new_kmess, (message *m) );

View File

@ -66,7 +66,6 @@ PRIVATE char dev_zero[ZERO_BUF_SIZE];
#define click_to_round_k(n) \
((unsigned) ((((unsigned long) (n) << CLICK_SHIFT) + 512) / 1024))
/*===========================================================================*
* main *
*===========================================================================*/
@ -77,7 +76,6 @@ PUBLIC void main(void)
driver_task(&m_dtab);
}
/*===========================================================================*
* m_name *
*===========================================================================*/
@ -88,7 +86,6 @@ PRIVATE char *m_name()
return name;
}
/*===========================================================================*
* m_prepare *
*===========================================================================*/
@ -102,7 +99,6 @@ int device;
return(&m_geom[device]);
}
/*===========================================================================*
* m_transfer *
*===========================================================================*/
@ -198,7 +194,6 @@ unsigned nr_req; /* length of request vector */
return(OK);
}
/*============================================================================*
* m_do_open *
*============================================================================*/
@ -215,7 +210,6 @@ message *m_ptr;
return(OK);
}
/*===========================================================================*
* m_init *
*===========================================================================*/
@ -274,7 +268,6 @@ PRIVATE void m_init()
#endif /* !(CHIP == INTEL) */
}
/*===========================================================================*
* m_ioctl *
*===========================================================================*/
@ -323,7 +316,6 @@ message *m_ptr; /* pointer to control message */
return(OK);
}
/*============================================================================*
* m_geometry *
*============================================================================*/
@ -336,4 +328,3 @@ struct partition *entry;
entry->sectors = 32;
}

View File

@ -111,8 +111,6 @@ FORWARD _PROTOTYPE( void reply, (int code,int replyee,int proc,int status));
FORWARD _PROTOTYPE( void do_printer_output, (void) );
FORWARD _PROTOTYPE( void signal_handler, (int sig) );
/*===========================================================================*
* signal_handler *
*===========================================================================*/
@ -128,7 +126,6 @@ int sig; /* signal number */
}
}
/*===========================================================================*
* printer_task *
*===========================================================================*/
@ -157,7 +154,6 @@ PUBLIC void main(void)
}
}
/*===========================================================================*
* do_write *
*===========================================================================*/
@ -206,7 +202,6 @@ register message *m_ptr; /* pointer to the newly arrived message */
}
}
/*===========================================================================*
* output_done *
*===========================================================================*/
@ -290,7 +285,6 @@ register message *m_ptr; /* pointer to the newly arrived message */
reply(TASK_REPLY, m_ptr->m_source, m_ptr->PROC_NR, EINTR);
}
/*===========================================================================*
* reply *
*===========================================================================*/
@ -310,7 +304,6 @@ int status; /* number of chars printed or error code */
send(replyee, &pr_mess); /* send the message */
}
/*===========================================================================*
* do_initialize *
*===========================================================================*/
@ -335,7 +328,6 @@ PRIVATE void do_initialize()
}
/*==========================================================================*
* prepare_output *
*==========================================================================*/
@ -355,7 +347,6 @@ PRIVATE void prepare_output()
oleft = chunk;
}
/*===========================================================================*
* do_printer_output *
*===========================================================================*/
@ -421,5 +412,3 @@ PRIVATE void do_printer_output()
sys_irqenable(&irq_hook_id);
}

View File

@ -55,7 +55,6 @@ PRIVATE struct driver r_dtab = {
#define RANDOM_BUF_SIZE 1024
PRIVATE char random_buf[RANDOM_BUF_SIZE];
/*===========================================================================*
* main *
*===========================================================================*/
@ -65,7 +64,6 @@ PUBLIC void main(void)
driver_task(&r_dtab); /* start driver's main loop */
}
/*===========================================================================*
* r_name *
*===========================================================================*/
@ -76,7 +74,6 @@ PRIVATE char *r_name()
return name;
}
/*===========================================================================*
* r_prepare *
*===========================================================================*/
@ -91,7 +88,6 @@ int device;
return(&m_geom[device]);
}
/*===========================================================================*
* r_transfer *
*===========================================================================*/
@ -144,7 +140,6 @@ unsigned nr_req; /* length of request vector */
}
break;
/* Unknown (illegal) minor device. */
default:
return(EINVAL);
@ -159,7 +154,6 @@ unsigned nr_req; /* length of request vector */
return(OK);
}
/*============================================================================*
* r_do_open *
*============================================================================*/
@ -174,7 +168,6 @@ message *m_ptr;
return(OK);
}
/*===========================================================================*
* r_init *
*===========================================================================*/
@ -187,7 +180,6 @@ PRIVATE void r_init()
r_random(NULL, NULL); /* also set periodic timer */
}
/*===========================================================================*
* r_ioctl *
*===========================================================================*/
@ -206,7 +198,6 @@ message *m_ptr; /* pointer to control message */
return(OK);
}
/*============================================================================*
* r_random *
*============================================================================*/
@ -257,4 +248,3 @@ struct partition *entry;
entry->sectors = 32;
}

View File

@ -36,7 +36,6 @@
*
*/
#include <sys/types.h>
/* #include <sys/time.h> */
/* #include <sys/systm.h> */
@ -67,7 +66,6 @@
#define assert(x)
#endif
/*** SHA-256/384/512 Machine Architecture Definitions *****************/
/*
* SHA2_BYTE_ORDER NOTE:
@ -128,14 +126,12 @@ typedef u_int64_t sha2_word64; /* Exactly 8 bytes */
#endif /* SHA2_USE_INTTYPES_H */
/*** SHA-256/384/512 Various Length Definitions ***********************/
/* NOTE: Most of these are in sha2.h */
#define SHA256_SHORT_BLOCK_LENGTH (SHA256_BLOCK_LENGTH - 8)
#define SHA384_SHORT_BLOCK_LENGTH (SHA384_BLOCK_LENGTH - 16)
#define SHA512_SHORT_BLOCK_LENGTH (SHA512_BLOCK_LENGTH - 16)
/*** ENDIAN REVERSAL MACROS *******************************************/
#if SHA2_BYTE_ORDER == SHA2_LITTLE_ENDIAN
#define REVERSE32(w,x) { \
@ -215,7 +211,6 @@ void SHA512_Last(SHA512_CTX*);
void SHA256_Transform(SHA256_CTX*, const sha2_word32*);
void SHA512_Transform(SHA512_CTX*, const sha2_word64*);
/*** SHA-XYZ INITIAL HASH VALUES AND CONSTANTS ************************/
/* Hash constant words K for SHA-256: */
const static sha2_word32 K256[64] = {
@ -325,7 +320,6 @@ const static sha2_word64 sha512_initial_hash_value[8] = {
*/
static const char *sha2_hex_digits = "0123456789abcdef";
/*** SHA-256: *********************************************************/
void SHA256_Init(SHA256_CTX* context) {
if (context == (SHA256_CTX*)0) {
@ -354,7 +348,6 @@ void SHA256_Init(SHA256_CTX* context) {
(h) = T1 + Sigma0_256(a) + Maj((a), (b), (c)); \
j++
#else /* SHA2_BYTE_ORDER == SHA2_LITTLE_ENDIAN */
#define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) \
@ -708,7 +701,6 @@ void SHA512_Init(SHA512_CTX* context) {
(h) = T1 + Sigma0_512(a) + Maj((a), (b), (c)), \
j++
#else /* SHA2_BYTE_ORDER == SHA2_LITTLE_ENDIAN */
#define ROUND512_0_TO_15(a,b,c,d,e,f,g,h) \
@ -1013,7 +1005,6 @@ char* SHA512_Data(const sha2_byte* data, size_t len, char digest[SHA512_DIGEST_S
return SHA512_End(&context, digest);
}
/*** SHA-384: *********************************************************/
void SHA384_Init(SHA384_CTX* context) {
if (context == (SHA384_CTX*)0) {

View File

@ -43,7 +43,6 @@
extern "C" {
#endif
/*** SHA-256/384/512 Various Length Definitions ***********************/
#define SHA256_BLOCK_LENGTH 64
#define SHA256_DIGEST_LENGTH 32
@ -135,7 +134,6 @@ typedef struct _SHA512_CTX {
typedef SHA512_CTX SHA384_CTX;
/*** SHA-256/384/512 Function Prototypes ******************************/
void SHA256_Init __P((SHA256_CTX *));
@ -162,7 +160,6 @@ char* SHA512_Data __P((const u_int8_t*, size_t, char[SHA512_DIGEST_STRING_LENGTH
#endif /* __SHA2_H__ */
/*
* $PchId: sha2.h,v 1.1 2005/06/28 14:29:33 philip Exp $
*/

View File

@ -141,7 +141,6 @@ typedef struct re
} re_tx[N_TX_BUF];
u32_t re_ertxth; /* Early Tx Threshold */
/* PCI related */
int re_seen; /* TRUE iff device available */
u8_t re_pcibus;
@ -172,7 +171,6 @@ re_t;
#define REF_BROAD 0x100
#define REF_ENABLED 0x200
static re_t re_table[RE_PORT_NR];
static u16_t eth_ign_proto;
@ -434,7 +432,6 @@ message *m; /* pointer to request message */
}
}
/*===========================================================================*
* do_init *
*===========================================================================*/
@ -919,7 +916,6 @@ re_t *rep;
if (i != 0 && i != 6) env_panic(eakey); /* It's all or nothing */
/* Should update ethernet address in hardware */
if (i == 6)
{
@ -1195,7 +1191,6 @@ int vectored;
goto suspend; /* Buffer overflow */
}
rep->re_stat.ets_packetR++;
rep->re_read_s= packlen;
rep->re_flags= (rep->re_flags & ~REF_READING) | REF_PACK_RECV;
@ -1884,7 +1879,6 @@ message *mp;
reply(rep, OK, FALSE);
}
/*===========================================================================*
* reply *
*===========================================================================*/
@ -1932,8 +1926,6 @@ int may_block;
rep->re_flags &= ~(REF_PACK_SENT | REF_PACK_RECV);
}
/*===========================================================================*
* mess_reply *
*===========================================================================*/
@ -2070,7 +2062,6 @@ static int do_hard_int(void)
}
}
/*===========================================================================*
* rl_handler *
*===========================================================================*/
@ -2391,7 +2382,6 @@ timer_t *tp;
}
}
#if 0
_PROTOTYPE( static void rtl_init, (struct dpeth *dep) );

View File

@ -4,7 +4,6 @@ ibm/rtl8139.h
Created: Aug 2003 by Philip Homburg <philip@cs.vu.nl>
*/
#define RL_IDR 0x00 /* Ethernet address
* Note: RL_9346CR_EEM_CONFIG mode is
* required the change the ethernet
@ -241,7 +240,6 @@ Created: Aug 2003 by Philip Homburg <philip@cs.vu.nl>
#define RL_RXS_FAE 0x00000002 /* Frame Alignment Error */
#define RL_RXS_ROK 0x00000001 /* Receive OK */
/* Registers in the Machine Independent Interface (MII) to the PHY.
* IEEE 802.3 (2000 Edition) Clause 22.
*/

View File

@ -32,7 +32,6 @@
#define DMA8_MODE 0x0B
#define DMA8_CLEAR 0x0C
/* If after this preprocessing stuff DMA8_PAGE is not defined
* the 8-bit DMA channel specified is not valid
*/
@ -55,7 +54,6 @@
#define DMA16_MODE 0xD6
#define DMA16_CLEAR 0xD8
/* If after this preprocessing stuff DMA16_PAGE is not defined
* the 16-bit DMA channel specified is not valid
*/
@ -71,14 +69,12 @@
# endif
#endif
/* DMA modes */
#define DMA16_AUTO_PLAY 0x58 + (SB_DMA_16 & 3)
#define DMA16_AUTO_REC 0x54 + (SB_DMA_16 & 3)
#define DMA8_AUTO_PLAY 0x58 + SB_DMA_8
#define DMA8_AUTO_REC 0x54 + SB_DMA_8
/* IO ports for soundblaster */
#define DSP_RESET 0x6 + SB_BASE_ADDR
#define DSP_READ 0xA + SB_BASE_ADDR
@ -93,7 +89,6 @@
#define OPL3_RIGHT 0x2 + SB_BASE_ADDR
#define OPL3_BOTH 0x8 + SB_BASE_ADDR
/* DSP Commands */
#define DSP_INPUT_RATE 0x42 /* set input sample rate */
#define DSP_OUTPUT_RATE 0x41 /* set output sample rate */
@ -111,14 +106,12 @@
#define DSP_CMD_IRQREQ8 0xF2 /* Interrupt request 8 bit */
#define DSP_CMD_IRQREQ16 0xF3 /* Interrupt request 16 bit */
/* DSP Modes */
#define DSP_MODE_MONO_US 0x00 /* Mono unsigned */
#define DSP_MODE_MONO_S 0x10 /* Mono signed */
#define DSP_MODE_STEREO_US 0x20 /* Stereo unsigned */
#define DSP_MODE_STEREO_S 0x30 /* Stereo signed */
/* MIXER commands */
#define MIXER_RESET 0x00 /* Reset */
#define MIXER_DAC_LEVEL 0x04 /* Used for detection only */
@ -167,10 +160,8 @@
#define DSP_MIN_FRAGMENT_SIZE 1024 /* Minimum fragment size */
#define DSP_NR_OF_BUFFERS 8
/* Number of bytes you can DMA before hitting a 64K boundary: */
#define dma_bytes_left(phys) \
((unsigned) (sizeof(int) == 2 ? 0 : 0x10000) - (unsigned) ((phys) & 0xFFFF))
#endif /* SB16_H */

View File

@ -55,7 +55,6 @@ PRIVATE int reviveProcNr;
#define dprint (void)
/*===========================================================================*
* main
*===========================================================================*/
@ -97,7 +96,6 @@ PUBLIC void main()
}
/*===========================================================================*
* dsp_open
*===========================================================================*/
@ -126,7 +124,6 @@ PRIVATE int dsp_open()
return OK;
}
/*===========================================================================*
* dsp_close
*===========================================================================*/
@ -139,7 +136,6 @@ PRIVATE int dsp_close()
return OK;
}
/*===========================================================================*
* dsp_ioctl
*===========================================================================*/
@ -180,7 +176,6 @@ message *m_ptr;
return status;
}
/*===========================================================================*
* dsp_write
*===========================================================================*/
@ -240,7 +235,6 @@ message *m_ptr;
notify(m_ptr->m_source);
}
/*===========================================================================*
* dsp_hardware_msg
*===========================================================================*/
@ -272,7 +266,6 @@ PRIVATE void dsp_hardware_msg()
dsp_inb((DspBits == 8 ? DSP_DATA_AVL : DSP_DATA16_AVL));
}
/*===========================================================================*
* dsp_status *
*===========================================================================*/
@ -292,7 +285,6 @@ message *m_ptr; /* pointer to the newly arrived message */
send(m_ptr->m_source, m_ptr); /* send the message */
}
/*===========================================================================*
* reply *
*===========================================================================*/
@ -311,7 +303,6 @@ int status;
send(replyee, &m);
}
/*===========================================================================*
* init_buffer
*===========================================================================*/
@ -337,7 +328,6 @@ PRIVATE void init_buffer()
#endif /* CHIP == INTEL */
}
/*===========================================================================*
* dsp_inb
*===========================================================================*/
@ -352,7 +342,6 @@ int port;
return value;
}
/*===========================================================================*
* dsp_outb
*===========================================================================*/
@ -366,7 +355,6 @@ int value;
panic("SB16DSP","sys_outb() failed", s);
}
/*===========================================================================*
* dsp_init
*===========================================================================*/
@ -414,7 +402,6 @@ PRIVATE int dsp_init()
return OK;
}
/*===========================================================================*
* dsp_reset
*===========================================================================*/
@ -436,7 +423,6 @@ PRIVATE int dsp_reset()
return OK;
}
/*===========================================================================*
* dsp_command
*===========================================================================*/
@ -456,7 +442,6 @@ int value;
return -1;
}
/*===========================================================================*
* dsp_set_size
*===========================================================================*/
@ -475,7 +460,6 @@ unsigned int size;
return OK;
}
/*===========================================================================*
* dsp_set_speed
*===========================================================================*/
@ -507,7 +491,6 @@ unsigned int speed;
return OK;
}
/*===========================================================================*
* dsp_set_stereo
*===========================================================================*/
@ -523,7 +506,6 @@ unsigned int stereo;
return OK;
}
/*===========================================================================*
* dsp_set_bits
*===========================================================================*/
@ -540,7 +522,6 @@ unsigned int bits;
return OK;
}
/*===========================================================================*
* dsp_set_sign
*===========================================================================*/
@ -554,7 +535,6 @@ unsigned int sign;
return OK;
}
/*===========================================================================*
* dsp_dma_setup
*===========================================================================*/
@ -597,7 +577,6 @@ int count;
}
}
/*===========================================================================*
* dsp_setup()
*===========================================================================*/
@ -638,7 +617,6 @@ PRIVATE void dsp_setup()
}
}
/*===========================================================================*
* mixer_set
*===========================================================================*/
@ -653,4 +631,4 @@ int data;
dsp_outb(MIXER_DATA, data);
return OK;
}
}

View File

@ -131,7 +131,6 @@ FORWARD _PROTOTYPE( void cons_org0, (void) );
FORWARD _PROTOTYPE( int ga_program, (struct sequence *seq) );
FORWARD _PROTOTYPE( int cons_ioctl, (tty_t *tp, int) );
/*===========================================================================*
* cons_write *
*===========================================================================*/
@ -201,7 +200,6 @@ int try;
}
}
/*===========================================================================*
* cons_echo *
*===========================================================================*/
@ -216,7 +214,6 @@ int c; /* character to be echoed */
flush(cons);
}
/*===========================================================================*
* out_char *
*===========================================================================*/
@ -303,7 +300,6 @@ int c; /* character to be output */
}
}
/*===========================================================================*
* scroll_screen *
*===========================================================================*/
@ -358,7 +354,6 @@ int dir; /* SCROLL_UP or SCROLL_DOWN */
flush(cons);
}
/*===========================================================================*
* flush *
*===========================================================================*/
@ -393,7 +388,6 @@ register console_t *cons; /* pointer to console struct */
}
}
/*===========================================================================*
* parse_escape *
*===========================================================================*/
@ -453,7 +447,6 @@ char c; /* next character in escape sequence */
}
}
/*===========================================================================*
* do_escape *
*===========================================================================*/
@ -696,7 +689,6 @@ char c; /* next character in escape sequence */
cons->c_esc_state = 0;
}
/*===========================================================================*
* set_6845 *
*===========================================================================*/
@ -732,7 +724,6 @@ unsigned *val; /* 16-bit value to set it to */
*val = (v1 << 8) | v2;
}
/*===========================================================================*
* beep *
*===========================================================================*/
@ -770,7 +761,6 @@ PRIVATE void beep()
}
}
/*===========================================================================*
* stop_beep *
*===========================================================================*/
@ -784,7 +774,6 @@ timer_t *tmrp;
beeping = FALSE;
}
/*===========================================================================*
* scr_init *
*===========================================================================*/
@ -890,7 +879,6 @@ int c;
putk(c);
}
/*==========================================================================*
* do_new_kmess *
*==========================================================================*/
@ -967,7 +955,6 @@ message *m_ptr; /* pointer to request message */
send(m_ptr->m_source, m_ptr);
}
/*===========================================================================*
* putk *
*===========================================================================*/
@ -987,7 +974,6 @@ int c; /* character to print */
}
}
/*===========================================================================*
* toggle_scroll *
*===========================================================================*/
@ -1000,7 +986,6 @@ PUBLIC void toggle_scroll()
printf("%sware scrolling enabled.\n", softscroll ? "Soft" : "Hard");
}
/*===========================================================================*
* cons_stop *
*===========================================================================*/
@ -1013,7 +998,6 @@ PUBLIC void cons_stop()
cons_table[0].c_attr = cons_table[0].c_blank = BLANK_COLOR;
}
/*===========================================================================*
* cons_org0 *
*===========================================================================*/
@ -1038,7 +1022,6 @@ PRIVATE void cons_org0()
select_console(ccurrent);
}
/*===========================================================================*
* select_console *
*===========================================================================*/
@ -1053,7 +1036,6 @@ PUBLIC void select_console(int cons_line)
set_6845(CURSOR, curcons->c_cur);
}
/*===========================================================================*
* con_loadfont *
*===========================================================================*/
@ -1094,7 +1076,6 @@ message *m;
return(result);
}
/*===========================================================================*
* ga_program *
*===========================================================================*/
@ -1111,7 +1092,6 @@ struct sequence *seq;
return sys_voutb(char_out, 14);
}
/*===========================================================================*
* cons_ioctl *
*===========================================================================*/

View File

@ -91,7 +91,6 @@ FORWARD _PROTOTYPE( void show_key_mappings, (void) );
FORWARD _PROTOTYPE( int kb_read, (struct tty *tp, int try) );
FORWARD _PROTOTYPE( unsigned map_key, (int scode) );
/*===========================================================================*
* map_key0 *
*===========================================================================*/
@ -99,7 +98,6 @@ FORWARD _PROTOTYPE( unsigned map_key, (int scode) );
#define map_key0(scode) \
((unsigned) keymap[(scode) * MAP_COLS])
/*===========================================================================*
* map_key *
*===========================================================================*/
@ -157,7 +155,6 @@ message *m_ptr;
}
}
/*==========================================================================*
* kb_read *
*==========================================================================*/
@ -230,7 +227,6 @@ int try;
return 1;
}
/*===========================================================================*
* make_break *
*===========================================================================*/
@ -308,7 +304,6 @@ int scode; /* scan code of key just struck or released */
return(-1);
}
/*===========================================================================*
* set_leds *
*===========================================================================*/
@ -331,7 +326,6 @@ PRIVATE void set_leds()
kb_ack(); /* wait for ack response */
}
/*==========================================================================*
* kb_wait *
*==========================================================================*/
@ -354,7 +348,6 @@ PRIVATE int kb_wait()
return(retries); /* zero on timeout, positive if ready */
}
/*==========================================================================*
* kb_ack *
*==========================================================================*/
@ -410,7 +403,6 @@ tty_t *tp;
}
}
/*===========================================================================*
* kbd_loadmap *
*===========================================================================*/
@ -425,7 +417,6 @@ message *m;
return(result);
}
/*===========================================================================*
* do_fkey_ctl *
*===========================================================================*/
@ -565,7 +556,6 @@ int scode; /* scan code for a function key */
return(TRUE);
}
/*==========================================================================*
* show_key_mappings *
*==========================================================================*/
@ -603,7 +593,6 @@ PRIVATE void show_key_mappings()
printf("\n");
}
/*==========================================================================*
* scan_keyboard *
*==========================================================================*/
@ -623,7 +612,6 @@ PRIVATE int scan_keyboard()
return(byte_in[0].value); /* return scan code */
}
/*==========================================================================*
* do_panic_dumps *
*==========================================================================*/
@ -665,4 +653,3 @@ message *m; /* request message to TTY */
}
}

View File

@ -65,7 +65,6 @@ typedef struct pty {
PRIVATE pty_t pty_table[NR_PTYS]; /* PTY bookkeeping */
FORWARD _PROTOTYPE( int pty_write, (tty_t *tp, int try) );
FORWARD _PROTOTYPE( void pty_echo, (tty_t *tp, int c) );
FORWARD _PROTOTYPE( void pty_start, (pty_t *pp) );
@ -76,7 +75,6 @@ FORWARD _PROTOTYPE( int pty_icancel, (tty_t *tp, int try) );
FORWARD _PROTOTYPE( int pty_ocancel, (tty_t *tp, int try) );
FORWARD _PROTOTYPE( int pty_select, (tty_t *tp, message *m) );
/*==========================================================================*
* do_pty *
*==========================================================================*/
@ -211,7 +209,6 @@ message *m_ptr;
tty_reply(TASK_REPLY, m_ptr->m_source, m_ptr->PROC_NR, r);
}
/*==========================================================================*
* pty_write *
*==========================================================================*/
@ -226,7 +223,6 @@ int try;
int count, ocount, s;
phys_bytes user_phys;
/* PTY closed down? */
if (pp->state & PTY_CLOSED) {
if(try) return 1;
@ -305,7 +301,6 @@ int c;
pty_start(pp);
}
/*==========================================================================*
* pty_start *
*==========================================================================*/
@ -339,7 +334,6 @@ pty_t *pp;
}
}
/*==========================================================================*
* pty_finish *
*==========================================================================*/
@ -360,7 +354,6 @@ pty_t *pp;
}
/*==========================================================================*
* pty_read *
*==========================================================================*/
@ -374,7 +367,6 @@ int try;
pty_t *pp = tp->tty_priv;
char c;
if (pp->state & PTY_CLOSED) {
if(try) return 1;
if (tp->tty_inleft > 0) {
@ -419,7 +411,6 @@ int try;
}
}
/*==========================================================================*
* pty_close *
*==========================================================================*/
@ -445,7 +436,6 @@ int try;
if (pp->state & PTY_CLOSED) pp->state = 0; else pp->state |= TTY_CLOSED;
}
/*==========================================================================*
* pty_icancel *
*==========================================================================*/
@ -464,7 +454,6 @@ int try;
}
}
/*==========================================================================*
* pty_ocancel *
*==========================================================================*/
@ -479,7 +468,6 @@ int try;
pp->otail = pp->ohead;
}
/*==========================================================================*
* pty_init *
*==========================================================================*/
@ -508,7 +496,6 @@ tty_t *tp;
tp->tty_select_ops = 0;
}
/*==========================================================================*
* pty_status *
*==========================================================================*/

View File

@ -1,4 +1,3 @@
#include <minix/config.h>
/*==========================================================================*
* rs232.c - serial driver for 8250 and 16450 UARTs *
@ -356,7 +355,6 @@ int try;
return 1;
}
/*==========================================================================*
* rs_echo *
*==========================================================================*/
@ -384,7 +382,6 @@ int c; /* character to echo */
if ((rs->ohead += ocount) >= bufend(rs->obuf)) rs->ohead -= buflen(rs->obuf);
}
/*==========================================================================*
* rs_ioctl *
*==========================================================================*/
@ -399,7 +396,6 @@ int dummy;
return 0; /* dummy */
}
/*==========================================================================*
* rs_config *
*==========================================================================*/
@ -508,7 +504,6 @@ rs232_t *rs; /* which line */
#endif /* MACHINE == ATARI */
}
/*==========================================================================*
* rs_init *
*==========================================================================*/
@ -627,7 +622,6 @@ tty_t *tp; /* which TTY */
}
/*==========================================================================*
* rs_interrupt *
*==========================================================================*/
@ -646,7 +640,6 @@ message *m; /* which TTY */
}
}
/*==========================================================================*
* rs_icancel *
*==========================================================================*/
@ -666,7 +659,6 @@ int dummy;
return 0; /* dummy */
}
/*==========================================================================*
* rs_ocancel *
*==========================================================================*/
@ -686,7 +678,6 @@ int dummy;
return 0; /* dummy */
}
/*==========================================================================*
* rs_read *
*==========================================================================*/
@ -734,7 +725,6 @@ int try;
}
}
/*==========================================================================*
* rs_ostart *
*==========================================================================*/
@ -747,7 +737,6 @@ rs232_t *rs; /* which rs line */
if (txready(rs)) out_int(rs);
}
/*==========================================================================*
* rs_break *
*==========================================================================*/
@ -768,7 +757,6 @@ int dummy;
return 0; /* dummy */
}
/*==========================================================================*
* rs_close *
*==========================================================================*/
@ -786,7 +774,6 @@ int dummy;
return 0; /* dummy */
}
/* Low level (interrupt) routines. */
#if (MACHINE == IBM_PC)
@ -868,7 +855,6 @@ int type; /* interrupt type */
}
#endif /* MACHINE == ATARI */
/*==========================================================================*
* in_int *
*==========================================================================*/
@ -911,7 +897,6 @@ register rs232_t *rs; /* line with input interrupt */
}
}
/*==========================================================================*
* line_int *
*==========================================================================*/
@ -933,7 +918,6 @@ register rs232_t *rs; /* line with line status interrupt */
if (rs->lstatus & LS_BREAK_INTERRUPT) ++rs->break_interrupts;
}
/*==========================================================================*
* modem_int *
*==========================================================================*/
@ -964,7 +948,6 @@ register rs232_t *rs; /* line with modem interrupt */
}
}
/*==========================================================================*
* out_int *
*==========================================================================*/

View File

@ -151,7 +151,6 @@ PUBLIC timer_t *tty_timers; /* queue of TTY timers */
PUBLIC clock_t tty_next_timeout; /* time that the next alarm is due */
PUBLIC struct machine machine; /* kernel environment variables */
/*===========================================================================*
* tty_task *
*===========================================================================*/
@ -289,7 +288,6 @@ PUBLIC void main(void)
}
}
/*===========================================================================*
* do_status *
*===========================================================================*/
@ -359,7 +357,6 @@ message *m_ptr;
}
}
/*===========================================================================*
* do_read *
*===========================================================================*/
@ -436,7 +433,6 @@ register message *m_ptr; /* pointer to message sent to the task */
select_retry(tp);
}
/*===========================================================================*
* do_write *
*===========================================================================*/
@ -487,7 +483,6 @@ register message *m_ptr; /* pointer to message sent to the task */
tty_reply(TASK_REPLY, m_ptr->m_source, m_ptr->PROC_NR, r);
}
/*===========================================================================*
* do_ioctl *
*===========================================================================*/
@ -703,7 +698,6 @@ message *m_ptr; /* pointer to message sent to task */
tty_reply(TASK_REPLY, m_ptr->m_source, m_ptr->PROC_NR, r);
}
/*===========================================================================*
* do_open *
*===========================================================================*/
@ -730,7 +724,6 @@ message *m_ptr; /* pointer to message sent to task */
tty_reply(TASK_REPLY, m_ptr->m_source, m_ptr->PROC_NR, r);
}
/*===========================================================================*
* do_close *
*===========================================================================*/
@ -752,7 +745,6 @@ message *m_ptr; /* pointer to message sent to task */
tty_reply(TASK_REPLY, m_ptr->m_source, m_ptr->PROC_NR, OK);
}
/*===========================================================================*
* do_cancel *
*===========================================================================*/
@ -886,7 +878,6 @@ tty_t *tp; /* TTY to check for events. */
select_retry_pty(tp);
}
/*===========================================================================*
* in_transfer *
*===========================================================================*/
@ -957,7 +948,6 @@ register tty_t *tp; /* pointer to terminal to read from */
}
}
/*===========================================================================*
* in_process *
*===========================================================================*/
@ -1119,7 +1109,6 @@ int count; /* number of input characters */
return ct;
}
/*===========================================================================*
* echo *
*===========================================================================*/
@ -1181,7 +1170,6 @@ register int ch; /* pointer to character to echo */
return(ch | (len << IN_LSHIFT));
}
/*==========================================================================*
* rawecho *
*==========================================================================*/
@ -1195,7 +1183,6 @@ int ch;
tp->tty_reprint = rp;
}
/*==========================================================================*
* back_over *
*==========================================================================*/
@ -1225,7 +1212,6 @@ register tty_t *tp;
return(1); /* one character erased */
}
/*==========================================================================*
* reprint *
*==========================================================================*/
@ -1265,7 +1251,6 @@ register tty_t *tp; /* pointer to tty struct */
} while (count < tp->tty_incount);
}
/*==========================================================================*
* out_process *
*==========================================================================*/
@ -1351,7 +1336,6 @@ out_done:
*ocount -= oct; /* *[io]count are the number of chars that are used */
}
/*===========================================================================*
* dev_ioctl *
*===========================================================================*/
@ -1377,7 +1361,6 @@ tty_t *tp;
tty_reply(REVIVE, tp->tty_iocaller, tp->tty_ioproc, result);
}
/*===========================================================================*
* setattr *
*===========================================================================*/
@ -1431,7 +1414,6 @@ tty_t *tp;
(*tp->tty_ioctl)(tp, 0);
}
/*===========================================================================*
* tty_reply *
*===========================================================================*/
@ -1453,7 +1435,6 @@ int status; /* reply code */
}
}
/*===========================================================================*
* sigchar *
*===========================================================================*/
@ -1481,7 +1462,6 @@ int sig; /* SIGINT, SIGQUIT, SIGKILL or SIGHUP */
}
}
/*==========================================================================*
* tty_icancel *
*==========================================================================*/
@ -1495,7 +1475,6 @@ register tty_t *tp;
(*tp->tty_icancel)(tp, 0);
}
/*==========================================================================*
* tty_init *
*==========================================================================*/
@ -1617,7 +1596,6 @@ int enable; /* set timer if true, otherwise unset */
}
}
/*==========================================================================*
* tty_devnop *
*==========================================================================*/
@ -1705,7 +1683,6 @@ struct sgttyb *sg;
return(OK);
}
/*===========================================================================*
* compat_getc *
*===========================================================================*/
@ -1724,7 +1701,6 @@ struct tchars *tc;
return(OK);
}
/*===========================================================================*
* compat_setp *
*===========================================================================*/
@ -1836,7 +1812,6 @@ struct sgttyb *sg;
return(OK);
}
/*===========================================================================*
* compat_setc *
*===========================================================================*/
@ -1861,7 +1836,6 @@ struct tchars *tc;
return(OK);
}
/* Table of termios line speed to sgtty line speed translations. All termios
* speeds are present even if sgtty didn't know about them. (Now it does.)
*/
@ -1903,7 +1877,6 @@ speed_t tspd;
return 96;
}
/*===========================================================================*
* sgspd2tspd *
*===========================================================================*/
@ -1919,7 +1892,6 @@ int sgspd;
return B9600;
}
#if ENABLE_BINCOMPAT
/*===========================================================================*
* do_ioctl_compat *
@ -1996,5 +1968,3 @@ message *m_ptr;
#endif /* ENABLE_BINCOMPAT */
#endif /* ENABLE_SRCCOMPAT || ENABLE_BINCOMPAT */

View File

@ -173,4 +173,3 @@ _PROTOTYPE( void mem_vid_copy, (u16_t *src, unsigned dst, unsigned count));
#endif /* (CHIP == INTEL) */