summaryrefslogtreecommitdiffstats
path: root/sys/netatm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netatm')
-rw-r--r--sys/netatm/atm_aal5.c44
-rw-r--r--sys/netatm/atm_cm.c26
-rw-r--r--sys/netatm/atm_cm.h30
-rw-r--r--sys/netatm/atm_if.c14
-rw-r--r--sys/netatm/atm_if.h21
-rw-r--r--sys/netatm/atm_sigmgr.h16
-rw-r--r--sys/netatm/atm_signal.c2
-rw-r--r--sys/netatm/atm_stack.h8
-rw-r--r--sys/netatm/atm_subr.c10
-rw-r--r--sys/netatm/atm_sys.h2
-rw-r--r--sys/netatm/atm_usrreq.c8
-rw-r--r--sys/netatm/atm_var.h185
12 files changed, 181 insertions, 185 deletions
diff --git a/sys/netatm/atm_aal5.c b/sys/netatm/atm_aal5.c
index f0beaca..74a622a 100644
--- a/sys/netatm/atm_aal5.c
+++ b/sys/netatm/atm_aal5.c
@@ -68,28 +68,28 @@ u_long atm_aal5_recvspace = 64 * 1024; /* XXX */
/*
* Local functions
*/
-static int atm_aal5_attach __P((struct socket *, int, struct thread *td));
-static int atm_aal5_detach __P((struct socket *));
-static int atm_aal5_bind __P((struct socket *, struct sockaddr *,
- struct thread *td));
-static int atm_aal5_listen __P((struct socket *, struct thread *td));
-static int atm_aal5_connect __P((struct socket *, struct sockaddr *,
- struct thread *td));
-static int atm_aal5_accept __P((struct socket *, struct sockaddr **));
-static int atm_aal5_disconnect __P((struct socket *));
-static int atm_aal5_shutdown __P((struct socket *));
-static int atm_aal5_send __P((struct socket *, int, KBuffer *,
- struct sockaddr *, KBuffer *, struct thread *td));
-static int atm_aal5_abort __P((struct socket *));
-static int atm_aal5_control __P((struct socket *, u_long, caddr_t,
- struct ifnet *, struct thread *td));
-static int atm_aal5_sense __P((struct socket *, struct stat *));
-static int atm_aal5_sockaddr __P((struct socket *, struct sockaddr **));
-static int atm_aal5_peeraddr __P((struct socket *, struct sockaddr **));
-static int atm_aal5_incoming __P((void *, Atm_connection *,
- Atm_attributes *, void **));
-static void atm_aal5_cpcs_data __P((void *, KBuffer *));
-static caddr_t atm_aal5_getname __P((void *));
+static int atm_aal5_attach(struct socket *, int, struct thread *td);
+static int atm_aal5_detach(struct socket *);
+static int atm_aal5_bind(struct socket *, struct sockaddr *,
+ struct thread *td);
+static int atm_aal5_listen(struct socket *, struct thread *td);
+static int atm_aal5_connect(struct socket *, struct sockaddr *,
+ struct thread *td);
+static int atm_aal5_accept(struct socket *, struct sockaddr **);
+static int atm_aal5_disconnect(struct socket *);
+static int atm_aal5_shutdown(struct socket *);
+static int atm_aal5_send(struct socket *, int, KBuffer *,
+ struct sockaddr *, KBuffer *, struct thread *td);
+static int atm_aal5_abort(struct socket *);
+static int atm_aal5_control(struct socket *, u_long, caddr_t,
+ struct ifnet *, struct thread *td);
+static int atm_aal5_sense(struct socket *, struct stat *);
+static int atm_aal5_sockaddr(struct socket *, struct sockaddr **);
+static int atm_aal5_peeraddr(struct socket *, struct sockaddr **);
+static int atm_aal5_incoming(void *, Atm_connection *,
+ Atm_attributes *, void **);
+static void atm_aal5_cpcs_data(void *, KBuffer *);
+static caddr_t atm_aal5_getname(void *);
#if (defined(__FreeBSD__) && (BSD >= 199506))
diff --git a/sys/netatm/atm_cm.c b/sys/netatm/atm_cm.c
index 13a16d2..e4d1aee 100644
--- a/sys/netatm/atm_cm.c
+++ b/sys/netatm/atm_cm.c
@@ -69,17 +69,17 @@ struct atm_cm_stat atm_cm_stat = {0};
/*
* Local functions
*/
-static void atm_cm_cpcs_upper __P((int, void *, int, int));
-static void atm_cm_saal_upper __P((int, void *, int, int));
-static void atm_cm_sscop_upper __P((int, void *, int, int));
-static Atm_connvc * atm_cm_share_llc __P((Atm_attributes *));
-static void atm_cm_closeconn __P((Atm_connection *,
- struct t_atm_cause *));
-static void atm_cm_closevc __P((Atm_connvc *));
-static void atm_cm_timeout __P((struct atm_time *));
-static KTimeout_ret atm_cm_procinq __P((void *));
-static void atm_cm_incall __P((Atm_connvc *));
-static int atm_cm_accept __P((Atm_connvc *, Atm_connection *));
+static void atm_cm_cpcs_upper(int, void *, int, int);
+static void atm_cm_saal_upper(int, void *, int, int);
+static void atm_cm_sscop_upper(int, void *, int, int);
+static Atm_connvc * atm_cm_share_llc(Atm_attributes *);
+static void atm_cm_closeconn(Atm_connection *,
+ struct t_atm_cause *);
+static void atm_cm_closevc(Atm_connvc *);
+static void atm_cm_timeout(struct atm_time *);
+static KTimeout_ret atm_cm_procinq(void *);
+static void atm_cm_incall(Atm_connvc *);
+static int atm_cm_accept(Atm_connvc *, Atm_connection *);
/*
* Local variables
@@ -164,7 +164,7 @@ atm_cm_connect(epp, token, ap, copp)
struct atm_pif *pip;
struct sigmgr *smp;
struct stack_list sl;
- void (*upf)__P((int, void *, int, int));
+ void (*upf)(int, void *, int, int);
int s, sli, err, err2;
*copp = NULL;
@@ -1765,7 +1765,7 @@ atm_cm_accept(cvp, cop)
Atm_connection *cop;
{
struct stack_list sl;
- void (*upf)__P((int, void *, int, int));
+ void (*upf)(int, void *, int, int);
int sli, err, err2;
diff --git a/sys/netatm/atm_cm.h b/sys/netatm/atm_cm.h
index bbeb18a..9c1b50c 100644
--- a/sys/netatm/atm_cm.h
+++ b/sys/netatm/atm_cm.h
@@ -58,40 +58,40 @@ struct atm_endpoint {
/* Exported functions: Miscellaneous */
int (*ep_ioctl) /* Ioctl */
- __P((int, caddr_t, caddr_t));
+ (int, caddr_t, caddr_t);
caddr_t (*ep_getname) /* Get application/owner name */
- __P((void *));
+ (void *);
/* Exported functions: Connection Manager Control API */
void (*ep_connected) /* Call connected */
- __P((void *));
+ (void *);
void (*ep_cleared) /* Call cleared */
- __P((void *, struct t_atm_cause *));
+ (void *, struct t_atm_cause *);
int (*ep_incoming) /* Incoming call */
- __P((void *, struct atm_connection *,
- struct atm_attributes *, void **));
+ (void *, struct atm_connection *,
+ struct atm_attributes *, void **);
int (*ep_addparty) /* Add Party notification */
- __P((void *, int, int));
+ (void *, int, int);
int (*ep_dropparty) /* Drop Party notification */
- __P((void *, int, int));
+ (void *, int, int);
/* Exported functions: Connection Manager Data API: CPCS */
void (*ep_cpcs_ctl) /* Control operation */
- __P((int, void *, void *));
+ (int, void *, void *);
void (*ep_cpcs_data) /* Received data */
- __P((void *, KBuffer *));
+ (void *, KBuffer *);
/* Exported functions: Connection Manager Data API: SAAL */
void (*ep_saal_ctl) /* Control operation */
- __P((int, void *, void *));
+ (int, void *, void *);
void (*ep_saal_data) /* Received data */
- __P((void *, KBuffer *));
+ (void *, KBuffer *);
/* Exported functions: Connection Manager Data API: SSCOP */
void (*ep_sscop_ctl) /* Control operation */
- __P((int, void *, void *, void *));
+ (int, void *, void *, void *);
void (*ep_sscop_data) /* Received data */
- __P((void *, KBuffer *, u_int));
+ (void *, KBuffer *, u_int);
};
typedef struct atm_endpoint Atm_endpoint;
#endif /* _KERNEL */
@@ -288,7 +288,7 @@ struct atm_connvc {
u_char cvc_state; /* CM - VCC state (see below) */
void *cvc_tokl; /* Stack lower layer token */
void (*cvc_lower) /* Stack lower layer handler */
- __P((int, void *, int, int));
+ (int, void *, int, int);
u_short cvc_upcnt; /* Up stack calls in progress */
u_short cvc_downcnt; /* Down stack calls in progress */
KBuffer *cvc_rcvq; /* Packet receive queue */
diff --git a/sys/netatm/atm_if.c b/sys/netatm/atm_if.c
index 86d783a..8116e76 100644
--- a/sys/netatm/atm_if.c
+++ b/sys/netatm/atm_if.c
@@ -72,18 +72,18 @@ extern int ifqmaxlen;
/*
* Local functions
*/
-static int atm_physif_ioctl __P((int, caddr_t, caddr_t));
+static int atm_physif_ioctl(int, caddr_t, caddr_t);
#if (defined(BSD) && (BSD >= 199306))
-static int atm_netif_rtdel __P((struct radix_node *, void *));
+static int atm_netif_rtdel(struct radix_node *, void *);
#endif
-static int atm_if_ioctl __P((struct ifnet *, u_long, caddr_t));
-static int atm_ifparse __P((char *, char *, int, int *));
+static int atm_if_ioctl(struct ifnet *, u_long, caddr_t);
+static int atm_ifparse(char *, char *, int, int *);
/*
* Local variables
*/
static int (*atm_ifouttbl[AF_MAX+1])
- __P((struct ifnet *, KBuffer *, struct sockaddr *))
+ (struct ifnet *, KBuffer *, struct sockaddr *)
= {NULL};
@@ -1018,8 +1018,8 @@ atm_ifoutput(ifp, m, dst)
#endif
{
u_short fam = dst->sa_family;
- int (*func)__P((struct ifnet *, KBuffer *,
- struct sockaddr *));
+ int (*func)(struct ifnet *, KBuffer *,
+ struct sockaddr *);
/*
* Validate address family
diff --git a/sys/netatm/atm_if.h b/sys/netatm/atm_if.h
index fada781..ca2f411 100644
--- a/sys/netatm/atm_if.h
+++ b/sys/netatm/atm_if.h
@@ -162,7 +162,7 @@ struct atm_pif {
/* Exported functions */
int (*pif_ioctl) /* Interface ioctl handler */
- __P((int, caddr_t, caddr_t));
+ (int, caddr_t, caddr_t);
/* Interface statistics */
long pif_ipdus; /* PDUs received from interface */
@@ -216,7 +216,7 @@ struct cmn_vcc {
struct cmn_vcc *cv_next; /* Next in list */
void *cv_toku; /* Upper layer's token */
void (*cv_upper) /* Upper layer's interface */
- __P((int, void *, int, int));
+ (int, void *, int, int);
Atm_connvc *cv_connvc; /* Associated connection VCC */
u_char cv_state; /* VCC state (see below) */
u_char cv_flags; /* VCC flags (see below) */
@@ -260,15 +260,15 @@ struct cmn_unit {
struct sp_info *cu_nif_pool; /* Device NIF pool */
int (*cu_ioctl) /* Interface ioctl handler */
- __P((int, caddr_t, caddr_t));
+ (int, caddr_t, caddr_t);
int (*cu_instvcc) /* VCC stack instantion handler */
- __P((struct cmn_unit *, Cmn_vcc *));
+ (struct cmn_unit *, Cmn_vcc *);
int (*cu_openvcc) /* Open VCC handler */
- __P((struct cmn_unit *, Cmn_vcc *));
+ (struct cmn_unit *, Cmn_vcc *);
int (*cu_closevcc) /* Close VCC handler */
- __P((struct cmn_unit *, Cmn_vcc *));
+ (struct cmn_unit *, Cmn_vcc *);
void (*cu_output) /* Data output handler */
- __P((struct cmn_unit *, Cmn_vcc *, KBuffer *));
+ (struct cmn_unit *, Cmn_vcc *, KBuffer *);
Atm_config cu_config; /* Device configuration data */
};
@@ -293,10 +293,9 @@ struct atm_ncm {
u_short ncm_family; /* Protocol family */
/* Exported functions */
int (*ncm_ifoutput) /* Interface if_output handler */
- __P((struct ifnet *, KBuffer *,
- struct sockaddr *));
+ (struct ifnet *, KBuffer *, struct sockaddr *);
int (*ncm_stat) /* Network i/f status handler */
- __P((int, struct atm_nif *, int));
+ (int, struct atm_nif *, int);
};
/*
@@ -346,7 +345,7 @@ struct atm_ncm {
/*
* Macro to schedule the ATM interrupt queue handler
*/
-typedef void (atm_intr_t) __P((void *, KBuffer *)); /* Callback function type */
+typedef void (atm_intr_t)(void *, KBuffer *); /* Callback function type */
typedef atm_intr_t *atm_intr_func_t; /* Pointer to callback function */
#define SCHED_ATM schednetisr(NETISR_ATM)
diff --git a/sys/netatm/atm_sigmgr.h b/sys/netatm/atm_sigmgr.h
index 6b1d63d..227b71f 100644
--- a/sys/netatm/atm_sigmgr.h
+++ b/sys/netatm/atm_sigmgr.h
@@ -50,21 +50,21 @@ struct sigmgr {
struct siginst *sm_prinst; /* List of protocol instances */
/* Exported functions */
int (*sm_attach) /* Attach interface */
- __P((struct sigmgr *, struct atm_pif *));
+ (struct sigmgr *, struct atm_pif *);
int (*sm_detach) /* Detach interface */
- __P((struct atm_pif *));
+ (struct atm_pif *);
int (*sm_setup) /* Connection setup */
- __P((Atm_connvc *, int *));
+ (Atm_connvc *, int *);
int (*sm_accept) /* Call accepted */
- __P((struct vccb *, int *));
+ (struct vccb *, int *);
int (*sm_reject) /* Call rejected */
- __P((struct vccb *, int *));
+ (struct vccb *, int *);
int (*sm_release) /* Connection release */
- __P((struct vccb *, int *));
+ (struct vccb *, int *);
int (*sm_free) /* Free connection resources */
- __P((struct vccb *));
+ (struct vccb *);
int (*sm_ioctl) /* Ioctl handler */
- __P((int, caddr_t, caddr_t));
+ (int, caddr_t, caddr_t);
};
#endif /* _KERNEL */
diff --git a/sys/netatm/atm_signal.c b/sys/netatm/atm_signal.c
index dc31cfe..b0e9b73 100644
--- a/sys/netatm/atm_signal.c
+++ b/sys/netatm/atm_signal.c
@@ -431,7 +431,7 @@ int
atm_create_stack(cvp, tlp, upf)
Atm_connvc *cvp;
struct stack_list *tlp;
- void (*upf)__P((int, void *, int, int));
+ void (*upf)(int, void *, int, int);
{
struct stack_defn *sdp, usd;
struct stack_inst svs;
diff --git a/sys/netatm/atm_stack.h b/sys/netatm/atm_stack.h
index 345a1af..45ae22c 100644
--- a/sys/netatm/atm_stack.h
+++ b/sys/netatm/atm_stack.h
@@ -53,11 +53,11 @@ struct stack_defn {
u_char sd_flag; /* Flags (see below) */
/* Exported functions */
int (*sd_inst) /* Stack instantiation */
- __P((struct stack_defn **, Atm_connvc *));
+ (struct stack_defn **, Atm_connvc *);
void (*sd_lower) /* Lower (from above) command handler */
- __P((int, void *, int, int));
+ (int, void *, int, int);
void (*sd_upper) /* Upper (from below) command handler */
- __P((int, void *, int, int));
+ (int, void *, int, int);
/* Variables used during stack instantiation */
void *sd_toku; /* Stack service instance token */
};
@@ -266,7 +266,7 @@ struct stackq_entry {
struct stackq_entry *sq_next; /* Next entry in queue */
int sq_cmd; /* Stack command */
void (*sq_func) /* Destination function */
- __P((int, void *, int, int));
+ (int, void *, int, int);
void *sq_token; /* Destination token */
int sq_arg1; /* Command-specific argument */
int sq_arg2; /* Command-specific argument */
diff --git a/sys/netatm/atm_subr.c b/sys/netatm/atm_subr.c
index 4fa917b..0ebfed8 100644
--- a/sys/netatm/atm_subr.c
+++ b/sys/netatm/atm_subr.c
@@ -92,8 +92,8 @@ struct sp_info atm_attributes_pool = {
/*
* Local functions
*/
-static void atm_compact __P((struct atm_time *));
-static KTimeout_ret atm_timexp __P((void *));
+static void atm_compact(struct atm_time *);
+static KTimeout_ret atm_timexp(void *);
/*
* Local variables
@@ -541,7 +541,7 @@ atm_timexp(arg)
* Dispatch expired timers
*/
while (((tip = atm_timeq) != NULL) && (tip->ti_ticks == 0)) {
- void (*func)__P((struct atm_time *));
+ void (*func)(struct atm_time *);
/*
* Remove expired block from queue
@@ -600,7 +600,7 @@ void
atm_timeout(tip, t, func)
struct atm_time *tip;
int t;
- void (*func)__P((struct atm_time *));
+ void (*func)(struct atm_time *);
{
struct atm_time *tip1, *tip2;
int s;
@@ -735,7 +735,7 @@ atm_untimeout(tip)
int
atm_stack_enq(cmd, func, token, cvp, arg1, arg2)
int cmd;
- void (*func)__P((int, void *, int, int));
+ void (*func)(int, void *, int, int);
void *token;
Atm_connvc *cvp;
int arg1;
diff --git a/sys/netatm/atm_sys.h b/sys/netatm/atm_sys.h
index 0c71bec..313cfe6 100644
--- a/sys/netatm/atm_sys.h
+++ b/sys/netatm/atm_sys.h
@@ -161,7 +161,7 @@ struct atm_time {
u_short ti_ticks; /* Delta of ticks until timeout */
u_char ti_flag; /* Timer flag bits (see below) */
void (*ti_func) /* Call at timeout expiration */
- __P((struct atm_time *));
+ (struct atm_time *);
struct atm_time *ti_next; /* Next on queue */
};
diff --git a/sys/netatm/atm_usrreq.c b/sys/netatm/atm_usrreq.c
index 361665b..979a656 100644
--- a/sys/netatm/atm_usrreq.c
+++ b/sys/netatm/atm_usrreq.c
@@ -62,10 +62,10 @@ __RCSID("@(#) $FreeBSD$");
/*
* Local functions
*/
-static int atm_dgram_attach __P((struct socket *, int, struct thread *));
-static int atm_dgram_control __P((struct socket *, u_long, caddr_t,
- struct ifnet *, struct thread *));
-static int atm_dgram_info __P((caddr_t));
+static int atm_dgram_attach(struct socket *, int, struct thread *);
+static int atm_dgram_control(struct socket *, u_long, caddr_t,
+ struct ifnet *, struct thread *);
+static int atm_dgram_info(caddr_t);
/*
diff --git a/sys/netatm/atm_var.h b/sys/netatm/atm_var.h
index 7668b60..6ea3ec7 100644
--- a/sys/netatm/atm_var.h
+++ b/sys/netatm/atm_var.h
@@ -81,126 +81,123 @@ extern struct pr_usrreqs atm_dgram_usrreqs;
* Global function declarations
*/
/* atm_aal5.c */
-int atm_aal5_ctloutput __P((struct socket *, struct sockopt *));
-void atm_aal5_init __P((void));
+int atm_aal5_ctloutput(struct socket *, struct sockopt *);
+void atm_aal5_init(void);
/* atm_cm.c */
-int atm_cm_connect __P((Atm_endpoint *, void *, Atm_attributes *,
- Atm_connection **));
-int atm_cm_listen __P((Atm_endpoint *, void *, Atm_attributes *,
- Atm_connection **));
-int atm_cm_addllc __P((Atm_endpoint *, void *, struct attr_llc *,
- Atm_connection *, Atm_connection **));
-int atm_cm_addparty __P((Atm_connection *, int,
- struct t_atm_sap *));
-int atm_cm_dropparty __P((Atm_connection *, int,
- struct t_atm_cause *));
-int atm_cm_release __P((Atm_connection *, struct t_atm_cause *));
-int atm_cm_abort __P((Atm_connvc *, struct t_atm_cause *));
-int atm_cm_incoming __P((struct vccb *, Atm_attributes *));
-void atm_cm_connected __P((Atm_connvc *));
-void atm_cm_cleared __P((Atm_connvc *));
-Atm_connection *atm_cm_match __P((Atm_attributes *, Atm_connection *));
-int atm_cm_cpcs_ctl __P((int, Atm_connection *, void *));
-int atm_cm_cpcs_data __P((Atm_connection *, KBuffer *));
-int atm_cm_saal_ctl __P((int, Atm_connection *, void *));
-int atm_cm_saal_data __P((Atm_connection *, KBuffer *));
-int atm_cm_sscop_ctl __P((int, Atm_connection *, void *, void *));
-int atm_cm_sscop_data __P((Atm_connection *, KBuffer *));
-int atm_endpoint_register __P((Atm_endpoint *));
-int atm_endpoint_deregister __P((Atm_endpoint *));
+int atm_cm_connect(Atm_endpoint *, void *, Atm_attributes *,
+ Atm_connection **);
+int atm_cm_listen(Atm_endpoint *, void *, Atm_attributes *,
+ Atm_connection **);
+int atm_cm_addllc(Atm_endpoint *, void *, struct attr_llc *,
+ Atm_connection *, Atm_connection **);
+int atm_cm_addparty(Atm_connection *, int, struct t_atm_sap *);
+int atm_cm_dropparty(Atm_connection *, int, struct t_atm_cause *);
+int atm_cm_release(Atm_connection *, struct t_atm_cause *);
+int atm_cm_abort(Atm_connvc *, struct t_atm_cause *);
+int atm_cm_incoming(struct vccb *, Atm_attributes *);
+void atm_cm_connected(Atm_connvc *);
+void atm_cm_cleared(Atm_connvc *);
+Atm_connection *atm_cm_match(Atm_attributes *, Atm_connection *);
+int atm_cm_cpcs_ctl(int, Atm_connection *, void *);
+int atm_cm_cpcs_data(Atm_connection *, KBuffer *);
+int atm_cm_saal_ctl(int, Atm_connection *, void *);
+int atm_cm_saal_data(Atm_connection *, KBuffer *);
+int atm_cm_sscop_ctl(int, Atm_connection *, void *, void *);
+int atm_cm_sscop_data(Atm_connection *, KBuffer *);
+int atm_endpoint_register(Atm_endpoint *);
+int atm_endpoint_deregister(Atm_endpoint *);
/* atm_device.c */
-int atm_dev_inst __P((struct stack_defn **, Atm_connvc *));
-void atm_dev_lower __P((int, void *, int, int));
-void * atm_dev_alloc __P((u_int, u_int, u_int));
-void atm_dev_free __P((volatile void *));
+int atm_dev_inst(struct stack_defn **, Atm_connvc *);
+void atm_dev_lower(int, void *, int, int);
+void * atm_dev_alloc(u_int, u_int, u_int);
+void atm_dev_free(volatile void *);
#if defined(sun4m)
-void * atm_dma_map __P((caddr_t, int, int));
-void atm_dma_free __P((caddr_t, int));
+void * atm_dma_map(caddr_t, int, int);
+void atm_dma_free(caddr_t, int);
#endif
-KBuffer * atm_dev_compress __P((KBuffer *));
-Cmn_vcc * atm_dev_vcc_find __P((Cmn_unit *, u_int, u_int, u_int));
-void atm_dev_pdu_print __P((Cmn_unit *, Cmn_vcc *, KBuffer *,
- char *));
+KBuffer * atm_dev_compress(KBuffer *);
+Cmn_vcc * atm_dev_vcc_find(Cmn_unit *, u_int, u_int, u_int);
+void atm_dev_pdu_print(Cmn_unit *, Cmn_vcc *, KBuffer *, char *);
/* atm_if.c */
-int atm_physif_register __P((Cmn_unit *, char *,
- struct stack_defn *));
-int atm_physif_deregister __P((Cmn_unit *));
-void atm_physif_freenifs __P((struct atm_pif *));
-int atm_netconv_register __P((struct atm_ncm *));
-int atm_netconv_deregister __P((struct atm_ncm *));
-int atm_nif_attach __P((struct atm_nif *));
-void atm_nif_detach __P((struct atm_nif *));
-int atm_nif_setaddr __P((struct atm_nif *, struct ifaddr *));
+int atm_physif_register(Cmn_unit *, char *,
+ struct stack_defn *);
+int atm_physif_deregister(Cmn_unit *);
+void atm_physif_freenifs(struct atm_pif *);
+int atm_netconv_register(struct atm_ncm *);
+int atm_netconv_deregister(struct atm_ncm *);
+int atm_nif_attach(struct atm_nif *);
+void atm_nif_detach(struct atm_nif *);
+int atm_nif_setaddr(struct atm_nif *, struct ifaddr *);
#if (defined(BSD) && (BSD >= 199103))
-int atm_ifoutput __P((struct ifnet *, KBuffer *,
- struct sockaddr *, struct rtentry *));
+int atm_ifoutput(struct ifnet *, KBuffer *,
+ struct sockaddr *, struct rtentry *);
#else
-int atm_ifoutput __P((struct ifnet *, KBuffer *,
- struct sockaddr *));
+int atm_ifoutput(struct ifnet *, KBuffer *,
+ struct sockaddr *);
#endif
struct atm_pif *
- atm_pifname __P((char *));
+ atm_pifname(char *);
struct atm_nif *
- atm_nifname __P((char *));
+ atm_nifname(char *);
/* atm_proto.c */
#if (defined(__FreeBSD__) && (BSD >= 199506))
-int atm_proto_notsupp1 __P((struct socket *));
-int atm_proto_notsupp2 __P((struct socket *, struct sockaddr *,
- struct thread *));
-int atm_proto_notsupp3 __P((struct socket *, struct sockaddr **));
-int atm_proto_notsupp4 __P((struct socket *, int, KBuffer *,
- struct sockaddr *, KBuffer *, struct thread *));
+int atm_proto_notsupp1(struct socket *);
+int atm_proto_notsupp2(struct socket *, struct sockaddr *,
+ struct thread *);
+int atm_proto_notsupp3(struct socket *, struct sockaddr **);
+int atm_proto_notsupp4(struct socket *, int, KBuffer *,
+ struct sockaddr *, KBuffer *, struct thread *);
#endif
/* atm_signal.c */
-int atm_sigmgr_register __P((struct sigmgr *));
-int atm_sigmgr_deregister __P((struct sigmgr *));
-int atm_sigmgr_attach __P((struct atm_pif *, u_char));
-int atm_sigmgr_detach __P((struct atm_pif *));
-int atm_stack_register __P((struct stack_defn *));
-int atm_stack_deregister __P((struct stack_defn *));
-int atm_create_stack __P((Atm_connvc *, struct stack_list *,
- void (*)__P((int, void *, int, int)) ));
+int atm_sigmgr_register(struct sigmgr *);
+int atm_sigmgr_deregister(struct sigmgr *);
+int atm_sigmgr_attach(struct atm_pif *, u_char);
+int atm_sigmgr_detach(struct atm_pif *);
+int atm_stack_register(struct stack_defn *);
+int atm_stack_deregister(struct stack_defn *);
+int atm_create_stack(Atm_connvc *, struct stack_list *,
+ void (*)(int, void *, int, int) );
/* atm_socket.c */
-int atm_sock_attach __P((struct socket *, u_long, u_long));
-int atm_sock_detach __P((struct socket *));
-int atm_sock_bind __P((struct socket *, struct sockaddr *));
-int atm_sock_listen __P((struct socket *, Atm_endpoint *));
-int atm_sock_connect __P((struct socket *, struct sockaddr *,
- Atm_endpoint *));
-int atm_sock_disconnect __P((struct socket *));
-int atm_sock_sockaddr __P((struct socket *, struct sockaddr **));
-int atm_sock_peeraddr __P((struct socket *, struct sockaddr **));
-int atm_sock_setopt __P((struct socket *, struct sockopt *,
- Atm_pcb *));
-int atm_sock_getopt __P((struct socket *, struct sockopt *,
- Atm_pcb *));
-void atm_sock_connected __P((void *));
-void atm_sock_cleared __P((void *, struct t_atm_cause *));
+int atm_sock_attach(struct socket *, u_long, u_long);
+int atm_sock_detach(struct socket *);
+int atm_sock_bind(struct socket *, struct sockaddr *);
+int atm_sock_listen(struct socket *, Atm_endpoint *);
+int atm_sock_connect(struct socket *, struct sockaddr *,
+ Atm_endpoint *);
+int atm_sock_disconnect(struct socket *);
+int atm_sock_sockaddr(struct socket *, struct sockaddr **);
+int atm_sock_peeraddr(struct socket *, struct sockaddr **);
+int atm_sock_setopt(struct socket *, struct sockopt *,
+ Atm_pcb *);
+int atm_sock_getopt(struct socket *, struct sockopt *,
+ Atm_pcb *);
+void atm_sock_connected(void *);
+void atm_sock_cleared(void *, struct t_atm_cause *);
/* atm_subr.c */
-void atm_initialize __P((void));
-void * atm_allocate __P((struct sp_info *));
-void atm_free __P((void *));
-void atm_release_pool __P((struct sp_info *));
-void atm_timeout __P((struct atm_time *, int,
- void (*) __P((struct atm_time *)) ));
-int atm_untimeout __P((struct atm_time *));
-int atm_stack_enq __P((int, void (*) __P((int, void *, int, int)),
- void *, Atm_connvc *, int, int));
-void atm_stack_drain __P((void));
-void atm_intr __P((void));
-void atm_pdu_print __P((KBuffer *, char *));
+void atm_initialize(void);
+void * atm_allocate(struct sp_info *);
+void atm_free(void *);
+void atm_release_pool(struct sp_info *);
+void atm_timeout(struct atm_time *, int,
+ void (*)(struct atm_time *) );
+int atm_untimeout(struct atm_time *);
+int atm_stack_enq(int, void (*)(int, void *, int, int),
+ void *, Atm_connvc *, int, int);
+void atm_stack_drain(void);
+void atm_intr(void);
+void atm_pdu_print(KBuffer *, char *);
/* atm_usrreq.c */
#if (!(defined(__FreeBSD__) && (BSD >= 199506)))
-int atm_dgram_usrreq __P((struct socket *, int, KBuffer *,
- KBuffer *, KBuffer *));
+int atm_dgram_usrreq(struct socket *, int, KBuffer *,
+ KBuffer *, KBuffer *);
#endif
#endif /* _KERNEL */
OpenPOWER on IntegriCloud