-/* $OpenBSD: clock.c,v 1.68 2021/02/23 04:44:31 cheloha Exp $ */
+/* $OpenBSD: clock.c,v 1.69 2021/02/23 15:47:53 cheloha Exp $ */
/* $NetBSD: clock.c,v 1.41 2001/07/24 19:29:25 eeh Exp $ */
/*
* own special match function to call it the "clock".
*/
static int
-clockmatch_sbus(parent, cf, aux)
- struct device *parent;
- void *cf;
- void *aux;
+clockmatch_sbus(struct device *parent, void *cf, void *aux)
{
struct sbus_attach_args *sa = aux;
}
static int
-clockmatch_ebus(parent, cf, aux)
- struct device *parent;
- void *cf;
- void *aux;
+clockmatch_ebus(struct device *parent, void *cf, void *aux)
{
struct ebus_attach_args *ea = aux;
}
static int
-clockmatch_fhc(parent, cf, aux)
- struct device *parent;
- void *cf;
- void *aux;
+clockmatch_fhc(struct device *parent, void *cf, void *aux)
{
struct fhc_attach_args *fa = aux;
* a non-trivial operation.
*/
-/* ARGSUSED */
static void
-clockattach_sbus(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+clockattach_sbus(struct device *parent, struct device *self, void *aux)
{
struct sbus_attach_args *sa = aux;
bus_space_tag_t bt = sa->sa_bustag;
* change are not atomic.
*/
int
-clock_bus_wenable(handle, onoff)
- struct todr_chip_handle *handle;
- int onoff;
+clock_bus_wenable(struct todr_chip_handle *handle, int onoff)
{
int s, err = 0;
int prot; /* nonzero => change prot */
return (err);
}
-/* ARGSUSED */
static void
-clockattach_ebus(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+clockattach_ebus(struct device *parent, struct device *self, void *aux)
{
struct ebus_attach_args *ea = aux;
bus_space_tag_t bt;
}
static void
-clockattach_fhc(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+clockattach_fhc(struct device *parent, struct device *self, void *aux)
{
struct fhc_attach_args *fa = aux;
bus_space_tag_t bt = fa->fa_bustag;
}
static void
-clockattach(node, bt, bh)
- int node;
- bus_space_tag_t bt;
- bus_space_handle_t bh;
+clockattach(int node, bus_space_tag_t bt, bus_space_handle_t bh)
{
char *model;
struct idprom *idp;
* the lame UltraSPARC IIi PCI machines that don't have them.
*/
static int
-timermatch(parent, cf, aux)
- struct device *parent;
- void *cf;
- void *aux;
+timermatch(struct device *parent, void *cf, void *aux)
{
#ifndef MULTIPROCESSOR
struct mainbus_attach_args *ma = aux;
}
static void
-timerattach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+timerattach(struct device *parent, struct device *self, void *aux)
{
struct mainbus_attach_args *ma = aux;
u_int *va = ma->ma_address;
}
void
-stopcounter(creg)
- struct timer_4u *creg;
+stopcounter(struct timer_4u *creg)
{
/* Stop the clock */
volatile int discard;
* XXX this belongs elsewhere
*/
void
-myetheraddr(cp)
- u_char *cp;
+myetheraddr(u_char *cp)
{
struct idprom *idp;
/*
* Dummy setstatclockrate(), since we know profhz==hz.
*/
-/* ARGSUSED */
void
-setstatclockrate(newhz)
- int newhz;
+setstatclockrate(int newhz)
{
/* nothing */
}
static int clockcheck = 0;
#endif
int
-clockintr(cap)
- void *cap;
+clockintr(void *cap)
{
#ifdef DEBUG
static int64_t tick_base = 0;
* locore.s to a level 10.
*/
int
-tickintr(cap)
- void *cap;
+tickintr(void *cap)
{
struct cpu_info *ci = curcpu();
u_int64_t s;
}
int
-sys_tickintr(cap)
- void *cap;
+sys_tickintr(void *cap)
{
struct cpu_info *ci = curcpu();
u_int64_t s;
}
int
-stickintr(cap)
- void *cap;
+stickintr(void *cap)
{
struct cpu_info *ci = curcpu();
u_int64_t s;
* Level 14 (stat clock) interrupt handler.
*/
int
-statintr(cap)
- void *cap;
+statintr(void *cap)
{
u_long newint, r, var;
struct cpu_info *ci = curcpu();
}
int
-schedintr(arg)
- void *arg;
+schedintr(void *arg)
{
if (curproc)
schedclock(curproc);