retire PUBLIC, PRIVATE and FORWARD
This commit is contained in:
@@ -384,7 +384,7 @@ static void el1_init(dpeth_t * dep)
|
||||
** Name: int el1_probe(dpeth_t *dep)
|
||||
** Function: Checks for presence of the board.
|
||||
*/
|
||||
PUBLIC int el1_probe(dpeth_t * dep)
|
||||
int el1_probe(dpeth_t * dep)
|
||||
{
|
||||
int ix;
|
||||
|
||||
|
||||
@@ -555,7 +555,7 @@ static void el3_write_id(port_t port)
|
||||
** Name: int el3_probe(dpeth_t *dep)
|
||||
** Function: Checks for presence of the board.
|
||||
*/
|
||||
PUBLIC int el3_probe(dpeth_t * dep)
|
||||
int el3_probe(dpeth_t * dep)
|
||||
{
|
||||
port_t id_port;
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ static void warning(const char *type, int err)
|
||||
** Name: unsigned int inb(unsigned short int port);
|
||||
** Function: Reads a byte from specified i/o port.
|
||||
*/
|
||||
PUBLIC unsigned int inb(unsigned short port)
|
||||
unsigned int inb(unsigned short port)
|
||||
{
|
||||
u32_t value;
|
||||
int rc;
|
||||
@@ -38,7 +38,7 @@ PUBLIC unsigned int inb(unsigned short port)
|
||||
** Name: unsigned int inw(unsigned short int port);
|
||||
** Function: Reads a word from specified i/o port.
|
||||
*/
|
||||
PUBLIC unsigned int inw(unsigned short port)
|
||||
unsigned int inw(unsigned short port)
|
||||
{
|
||||
u32_t value;
|
||||
int rc;
|
||||
@@ -51,7 +51,7 @@ PUBLIC unsigned int inw(unsigned short port)
|
||||
** Name: unsigned int insb(unsigned short int port, int proc_nr, void *buffer, int count);
|
||||
** Function: Reads a sequence of bytes from specified i/o port to user space buffer.
|
||||
*/
|
||||
PUBLIC void insb(unsigned short int port, endpoint_t proc_nr,
|
||||
void insb(unsigned short int port, endpoint_t proc_nr,
|
||||
void *buffer, int count)
|
||||
{
|
||||
int rc;
|
||||
@@ -66,7 +66,7 @@ PUBLIC void insb(unsigned short int port, endpoint_t proc_nr,
|
||||
** Name: void outb(unsigned short int port, unsigned long value);
|
||||
** Function: Writes a byte to specified i/o port.
|
||||
*/
|
||||
PUBLIC void outb(unsigned short port, unsigned long value)
|
||||
void outb(unsigned short port, unsigned long value)
|
||||
{
|
||||
int rc;
|
||||
|
||||
@@ -78,7 +78,7 @@ PUBLIC void outb(unsigned short port, unsigned long value)
|
||||
** Name: void outw(unsigned short int port, unsigned long value);
|
||||
** Function: Writes a word to specified i/o port.
|
||||
*/
|
||||
PUBLIC void outw(unsigned short port, unsigned long value)
|
||||
void outw(unsigned short port, unsigned long value)
|
||||
{
|
||||
int rc;
|
||||
|
||||
@@ -90,7 +90,7 @@ PUBLIC void outw(unsigned short port, unsigned long value)
|
||||
** Name: void outsb(unsigned short int port, int proc_nr, void *buffer, int count);
|
||||
** Function: Writes a sequence of bytes from user space to specified i/o port.
|
||||
*/
|
||||
PUBLIC void outsb(unsigned short port, endpoint_t proc_nr, void *buffer, int count)
|
||||
void outsb(unsigned short port, endpoint_t proc_nr, void *buffer, int count)
|
||||
{
|
||||
int rc;
|
||||
|
||||
|
||||
@@ -312,7 +312,7 @@ static void do_init(const message * mp)
|
||||
** Name: void dp_next_iovec(iovec_dat_t *iovp)
|
||||
** Function: Retrieves data from next iovec element.
|
||||
*/
|
||||
PUBLIC void dp_next_iovec(iovec_dat_s_t * iovp)
|
||||
void dp_next_iovec(iovec_dat_s_t * iovp)
|
||||
{
|
||||
|
||||
iovp->iod_iovec_s -= IOVEC_NR;
|
||||
@@ -470,7 +470,7 @@ static void do_watchdog(const void *UNUSED(message))
|
||||
return;
|
||||
}
|
||||
|
||||
PRIVATE void handle_hw_intr(void)
|
||||
static void handle_hw_intr(void)
|
||||
{
|
||||
dpeth_t *dep;
|
||||
|
||||
@@ -488,15 +488,15 @@ PRIVATE void handle_hw_intr(void)
|
||||
}
|
||||
|
||||
/* SEF functions and variables. */
|
||||
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);
|
||||
static void sef_local_startup(void);
|
||||
static int sef_cb_init_fresh(int type, sef_init_info_t *info);
|
||||
static void sef_cb_signal_handler(int signo);
|
||||
|
||||
/*
|
||||
** Name: int dpeth_task(void)
|
||||
** Function: Main entry for dp task
|
||||
*/
|
||||
PUBLIC int main(int argc, char **argv)
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
message m;
|
||||
int ipc_status;
|
||||
@@ -560,7 +560,7 @@ PUBLIC int main(int argc, char **argv)
|
||||
/*===========================================================================*
|
||||
* sef_local_startup *
|
||||
*===========================================================================*/
|
||||
PRIVATE void sef_local_startup()
|
||||
static void sef_local_startup()
|
||||
{
|
||||
/* Register init callbacks. */
|
||||
sef_setcb_init_fresh(sef_cb_init_fresh);
|
||||
@@ -581,7 +581,7 @@ PRIVATE void sef_local_startup()
|
||||
/*===========================================================================*
|
||||
* sef_cb_init_fresh *
|
||||
*===========================================================================*/
|
||||
PRIVATE int sef_cb_init_fresh(int type, sef_init_info_t *UNUSED(info))
|
||||
static int sef_cb_init_fresh(int type, sef_init_info_t *UNUSED(info))
|
||||
{
|
||||
/* Initialize the dpeth driver. */
|
||||
int fkeys, sfkeys;
|
||||
@@ -605,7 +605,7 @@ PRIVATE int sef_cb_init_fresh(int type, sef_init_info_t *UNUSED(info))
|
||||
/*===========================================================================*
|
||||
* sef_cb_signal_handler *
|
||||
*===========================================================================*/
|
||||
PRIVATE void sef_cb_signal_handler(int signo)
|
||||
static void sef_cb_signal_handler(int signo)
|
||||
{
|
||||
/* Only check for termination signal, ignore anything else. */
|
||||
if (signo != SIGTERM) return;
|
||||
|
||||
@@ -101,7 +101,7 @@ static void ne_init(dpeth_t * dep)
|
||||
** Note that the NE1000 is an 8bit card and has a memory
|
||||
** region distict from the 16bit NE2000.
|
||||
*/
|
||||
PUBLIC int ne_probe(dpeth_t * dep)
|
||||
int ne_probe(dpeth_t * dep)
|
||||
{
|
||||
int ix, wd, loc1, loc2;
|
||||
char EPROM[32];
|
||||
|
||||
@@ -21,7 +21,7 @@ static char tx_rx_buff[8192];
|
||||
** Name: void *alloc_buff(dpeth_t *dep, int size)
|
||||
** Function: Allocates a buffer from the common pool.
|
||||
*/
|
||||
PUBLIC void *alloc_buff(dpeth_t *dep, int size)
|
||||
void *alloc_buff(dpeth_t *dep, int size)
|
||||
{
|
||||
m_hdr_t *ptr, *wrk = allocptr;
|
||||
int units = ((size + sizeof(m_hdr_t) - 1) / sizeof(m_hdr_t)) + 1;
|
||||
@@ -52,7 +52,7 @@ PUBLIC void *alloc_buff(dpeth_t *dep, int size)
|
||||
** Name: void free_buff(dpeth_t *dep, void *blk)
|
||||
** Function: Returns a buffer to the common pool.
|
||||
*/
|
||||
PUBLIC void free_buff(dpeth_t *dep, void *blk)
|
||||
void free_buff(dpeth_t *dep, void *blk)
|
||||
{
|
||||
m_hdr_t *wrk, *ptr = (m_hdr_t *) blk - 1;
|
||||
|
||||
@@ -80,7 +80,7 @@ PUBLIC void free_buff(dpeth_t *dep, void *blk)
|
||||
** Name: void init_buff(dpeth_t *dep, buff_t **tx_buff)
|
||||
** Function: Initalizes driver data structures.
|
||||
*/
|
||||
PUBLIC void init_buff(dpeth_t *dep, buff_t **tx_buff)
|
||||
void init_buff(dpeth_t *dep, buff_t **tx_buff)
|
||||
{
|
||||
|
||||
/* Initializes buffer pool */
|
||||
@@ -105,7 +105,7 @@ PUBLIC void init_buff(dpeth_t *dep, buff_t **tx_buff)
|
||||
** Name: void mem2user(dpeth_t *dep, buff_t *rxbuff);
|
||||
** Function: Copies a packet from local buffer to user area.
|
||||
*/
|
||||
PUBLIC void mem2user(dpeth_t *dep, buff_t *rxbuff)
|
||||
void mem2user(dpeth_t *dep, buff_t *rxbuff)
|
||||
{
|
||||
int bytes, ix = 0;
|
||||
iovec_dat_s_t *iovp = &dep->de_read_iovec;
|
||||
@@ -137,7 +137,7 @@ PUBLIC void mem2user(dpeth_t *dep, buff_t *rxbuff)
|
||||
** Name: void user2mem(dpeth_t *dep, buff_t *txbuff)
|
||||
** Function: Copies a packet from user area to local buffer.
|
||||
*/
|
||||
PUBLIC void user2mem(dpeth_t *dep, buff_t *txbuff)
|
||||
void user2mem(dpeth_t *dep, buff_t *txbuff)
|
||||
{
|
||||
int bytes, ix = 0;
|
||||
iovec_dat_s_t *iovp = &dep->de_write_iovec;
|
||||
|
||||
Reference in New Issue
Block a user