retire _PROTOTYPE
. only good for obsolete K&R support . also remove a stray ansi.h and the proto cmd
This commit is contained in:
@@ -301,32 +301,28 @@ struct hermes_idstring
|
||||
#define HERMES_RECLEN_TO_BYTES(n) ( ((n)-1) * 2 )
|
||||
|
||||
/* Function prototypes */
|
||||
_PROTOTYPE (u16_t hermes_read_reg, (const hermes_t * hw, u16_t off));
|
||||
_PROTOTYPE (void hermes_write_reg, (const hermes_t * hw, u16_t off,
|
||||
u16_t val));
|
||||
_PROTOTYPE (void hermes_struct_init, (hermes_t * hw, u32_t address,
|
||||
int io_space, int reg_spacing));
|
||||
_PROTOTYPE (int hermes_init, (hermes_t * hw));
|
||||
_PROTOTYPE (int hermes_docmd_wait, (hermes_t * hw, u16_t cmd,
|
||||
u16_t parm0, hermes_response_t * resp));
|
||||
_PROTOTYPE (int hermes_allocate, (hermes_t * hw, u16_t size, u16_t * fid));
|
||||
_PROTOTYPE (int hermes_bap_pread, (hermes_t * hw, int bap, void *buf,
|
||||
unsigned len, u16_t id, u16_t offset));
|
||||
_PROTOTYPE (int hermes_bap_pwrite, (hermes_t * hw, int bap,
|
||||
const void *buf, unsigned len, u16_t id,
|
||||
u16_t offset));
|
||||
_PROTOTYPE (void hermes_read_words, (hermes_t * hw, int off, void *buf,
|
||||
unsigned count));
|
||||
_PROTOTYPE (int hermes_read_ltv, (hermes_t * hw, int bap, u16_t rid,
|
||||
unsigned buflen, u16_t * length,
|
||||
void *buf));
|
||||
_PROTOTYPE (int hermes_write_ltv, (hermes_t * hw, int bap, u16_t rid,
|
||||
u16_t length, const void *value));
|
||||
_PROTOTYPE (int hermes_set_irqmask, (hermes_t * hw, u16_t events));
|
||||
_PROTOTYPE (u16_t hermes_get_irqmask, (hermes_t * hw));
|
||||
_PROTOTYPE (int hermes_read_wordrec, (hermes_t * hw, int bap, u16_t rid,
|
||||
u16_t * word));
|
||||
_PROTOTYPE (int hermes_write_wordrec, (hermes_t * hw, int bap, u16_t rid,
|
||||
u16_t word));
|
||||
_PROTOTYPE (int hermes_cor_reset, (hermes_t *hw));
|
||||
u16_t hermes_read_reg(const hermes_t * hw, u16_t off);
|
||||
void hermes_write_reg(const hermes_t * hw, u16_t off, u16_t val);
|
||||
void hermes_struct_init(hermes_t * hw, u32_t address, int io_space, int
|
||||
reg_spacing);
|
||||
int hermes_init(hermes_t * hw);
|
||||
int hermes_docmd_wait(hermes_t * hw, u16_t cmd, u16_t parm0,
|
||||
hermes_response_t * resp);
|
||||
int hermes_allocate(hermes_t * hw, u16_t size, u16_t * fid);
|
||||
int hermes_bap_pread(hermes_t * hw, int bap, void *buf, unsigned len,
|
||||
u16_t id, u16_t offset);
|
||||
int hermes_bap_pwrite(hermes_t * hw, int bap, const void *buf, unsigned
|
||||
len, u16_t id, u16_t offset);
|
||||
void hermes_read_words(hermes_t * hw, int off, void *buf, unsigned
|
||||
count);
|
||||
int hermes_read_ltv(hermes_t * hw, int bap, u16_t rid, unsigned buflen,
|
||||
u16_t * length, void *buf);
|
||||
int hermes_write_ltv(hermes_t * hw, int bap, u16_t rid, u16_t length,
|
||||
const void *value);
|
||||
int hermes_set_irqmask(hermes_t * hw, u16_t events);
|
||||
u16_t hermes_get_irqmask(hermes_t * hw);
|
||||
int hermes_read_wordrec(hermes_t * hw, int bap, u16_t rid, u16_t *
|
||||
word);
|
||||
int hermes_write_wordrec(hermes_t * hw, int bap, u16_t rid, u16_t word);
|
||||
int hermes_cor_reset(hermes_t *hw);
|
||||
#endif /* _HERMES_H */
|
||||
|
||||
@@ -129,33 +129,32 @@ struct {
|
||||
#define BITRATE_TABLE_SIZE (sizeof(bitrate_table) / sizeof(bitrate_table[0]))
|
||||
|
||||
|
||||
_PROTOTYPE (static void or_writev_s, (message * mp, int from_int));
|
||||
_PROTOTYPE (static void or_readv_s, (message * mp, int from_int));
|
||||
_PROTOTYPE (static void reply, (t_or * orp));
|
||||
_PROTOTYPE (static int or_probe, (t_or *, int skip));
|
||||
_PROTOTYPE (static void or_ev_info, (t_or *));
|
||||
_PROTOTYPE (static void or_init, (message *));
|
||||
_PROTOTYPE (static void or_pci_conf, (void));
|
||||
_PROTOTYPE (static void or_init_struct, (t_or *));
|
||||
_PROTOTYPE (static void map_hw_buffer, (t_or *));
|
||||
_PROTOTYPE (static void or_init_hw, (t_or *));
|
||||
_PROTOTYPE (static void or_check_ints, (t_or *));
|
||||
_PROTOTYPE (static void or_writerids, (hermes_t *, t_or *));
|
||||
_PROTOTYPE (static void or_readrids, (hermes_t *, t_or *));
|
||||
_PROTOTYPE (static void or_rec_mode, (t_or *));
|
||||
_PROTOTYPE (static void mess_reply, (message *, message *));
|
||||
_PROTOTYPE (static u32_t or_get_bar, (int devind, t_or * orp));
|
||||
_PROTOTYPE (static void or_getstat_s, (message * mp));
|
||||
_PROTOTYPE (static void print_linkstatus, (t_or * orp, u16_t status));
|
||||
_PROTOTYPE (static int or_get_recvd_packet, (t_or *orp, u16_t rxfid,
|
||||
u8_t *databuf));
|
||||
_PROTOTYPE (static void or_reset, (void));
|
||||
_PROTOTYPE (static void or_watchdog_f, (timer_t *tp) );
|
||||
_PROTOTYPE (static void setup_wepkey, (t_or *orp, char *wepkey0) );
|
||||
_PROTOTYPE (static void do_hard_int, (void));
|
||||
_PROTOTYPE (static void check_int_events, (void));
|
||||
_PROTOTYPE (static void or_handler, (t_or *orp));
|
||||
_PROTOTYPE (static void or_dump, (message *m));
|
||||
static void or_writev_s(message * mp, int from_int);
|
||||
static void or_readv_s(message * mp, int from_int);
|
||||
static void reply(t_or * orp);
|
||||
static int or_probe(t_or *, int skip);
|
||||
static void or_ev_info(t_or *);
|
||||
static void or_init(message *);
|
||||
static void or_pci_conf(void);
|
||||
static void or_init_struct(t_or *);
|
||||
static void map_hw_buffer(t_or *);
|
||||
static void or_init_hw(t_or *);
|
||||
static void or_check_ints(t_or *);
|
||||
static void or_writerids(hermes_t *, t_or *);
|
||||
static void or_readrids(hermes_t *, t_or *);
|
||||
static void or_rec_mode(t_or *);
|
||||
static void mess_reply(message *, message *);
|
||||
static u32_t or_get_bar(int devind, t_or * orp);
|
||||
static void or_getstat_s(message * mp);
|
||||
static void print_linkstatus(t_or * orp, u16_t status);
|
||||
static int or_get_recvd_packet(t_or *orp, u16_t rxfid, u8_t *databuf);
|
||||
static void or_reset(void);
|
||||
static void or_watchdog_f(timer_t *tp);
|
||||
static void setup_wepkey(t_or *orp, char *wepkey0);
|
||||
static void do_hard_int(void);
|
||||
static void check_int_events(void);
|
||||
static void or_handler(t_or *orp);
|
||||
static void or_dump(message *m);
|
||||
|
||||
/* The message used in the main loop is made global, so that rl_watchdog_f()
|
||||
* can change its message type to fake an interrupt message.
|
||||
@@ -166,9 +165,9 @@ PRIVATE int int_event_check; /* set to TRUE if events arrived */
|
||||
PRIVATE u32_t system_hz;
|
||||
|
||||
/* SEF functions and variables. */
|
||||
FORWARD _PROTOTYPE( void sef_local_startup, (void) );
|
||||
FORWARD _PROTOTYPE( int sef_cb_init_fresh, (int type, sef_init_info_t *info) );
|
||||
FORWARD _PROTOTYPE( void sef_cb_signal_handler, (int signo) );
|
||||
FORWARD void sef_local_startup(void);
|
||||
FORWARD int sef_cb_init_fresh(int type, sef_init_info_t *info);
|
||||
FORWARD void sef_cb_signal_handler(int signo);
|
||||
|
||||
/*****************************************************************************
|
||||
* main *
|
||||
|
||||
Reference in New Issue
Block a user