-/* $OpenBSD: machdep.c,v 1.294 2024/06/07 16:53:35 kettenis Exp $ */
+/* $OpenBSD: machdep.c,v 1.295 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */
/*-
sd->sd_hibase = (u_int64_t)base >> 24;
}
-void cpu_init_idt(void)
+void
+cpu_init_idt(void)
{
struct region_descriptor region;
-/* $OpenBSD: vmm_machdep.c,v 1.27 2024/05/13 01:15:50 jsg Exp $ */
+/* $OpenBSD: vmm_machdep.c,v 1.28 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
DPRINTF("(pstate ratio = 0x%llx)\n", (val & 0xffff));
}
-void vmm_decode_perf_ctl_value(uint64_t val)
+void
+vmm_decode_perf_ctl_value(uint64_t val)
{
DPRINTF("(%s ", (val & PERF_CTL_TURBO) ? "TURBO" : "turbo");
DPRINTF("pstate req = 0x%llx)\n", (val & 0xfffF));
-/* $OpenBSD: intr.c,v 1.21 2022/07/27 20:26:17 kettenis Exp $ */
+/* $OpenBSD: intr.c,v 1.22 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2011 Dale Rahn <drahn@openbsd.org>
*
}
-void *arm_intr_establish(int irqno, int level, int (*func)(void *),
+void *
+arm_intr_establish(int irqno, int level, int (*func)(void *),
void *cookie, char *name)
{
return arm_intr_func.intr_establish(irqno, level, NULL, func, cookie, name);
}
-void arm_intr_disestablish(void *cookie)
+
+void
+arm_intr_disestablish(void *cookie)
{
arm_intr_func.intr_disestablish(cookie);
}
-const char *arm_intr_string(void *cookie)
+
+const char *
+arm_intr_string(void *cookie)
{
return arm_intr_func.intr_string(cookie);
}
ci->ci_cpl = newcpl;
}
-void *arm_dflt_intr_establish(int irqno, int level, struct cpu_info *ci,
+void *
+arm_dflt_intr_establish(int irqno, int level, struct cpu_info *ci,
int (*func)(void *), void *cookie, char *name)
{
panic("arm_dflt_intr_establish called");
}
-void arm_dflt_intr_disestablish(void *cookie)
+void
+arm_dflt_intr_disestablish(void *cookie)
{
panic("arm_dflt_intr_disestablish called");
}
restore_interrupts(oldirqstate);
}
-void arm_set_intr_handler(int (*raise)(int), int (*lower)(int),
+void
+arm_set_intr_handler(int (*raise)(int), int (*lower)(int),
void (*x)(int), void (*setipl)(int),
void *(*intr_establish)(int irqno, int level, struct cpu_info *ci,
int (*func)(void *), void *cookie, char *name),
-/* $OpenBSD: intc.c,v 1.14 2024/04/29 12:42:06 jsg Exp $ */
+/* $OpenBSD: intc.c,v 1.15 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
}
void intc_test(void);
-void intc_test(void)
+void
+intc_test(void)
{
void * ih;
printf("about to register handler\n");
-/* $OpenBSD: omusbtll.c,v 1.5 2021/10/24 17:52:28 mpi Exp $ */
+/* $OpenBSD: omusbtll.c,v 1.6 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2010 Dale Rahn <drahn@openbsd.org>
*
omusbtll_init(0x3);
}
-
-void omusbtll_init(uint32_t channel_mask)
+void
+omusbtll_init(uint32_t channel_mask)
{
int i;
uint32_t val;
-/* $OpenBSD: machdep.c,v 1.40 2022/07/07 00:56:47 daniel Exp $ */
+/* $OpenBSD: machdep.c,v 1.41 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2004 Tom Cosgrove
}
}
-int check_skip_conf(void)
+int
+check_skip_conf(void)
{
/* Return non-zero (skip boot.conf) if Control "shift" key down */
#ifndef EFIBOOT
-/* $OpenBSD: xp.c,v 1.3 2017/09/08 05:36:52 deraadt Exp $ */
+/* $OpenBSD: xp.c,v 1.4 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: xp.c,v 1.1 2016/12/03 17:38:02 tsutsui Exp $ */
/*-
#define ON 1
#define OFF 0
-static uint8_t put_pio0c(uint8_t bit, uint8_t set)
+static uint8_t
+put_pio0c(uint8_t bit, uint8_t set)
{
volatile uint8_t * const pio0 = (uint8_t *)PIO_ADDR;
-/* $OpenBSD: asm_macro.h,v 1.10 2014/03/29 18:09:29 guenther Exp $ */
+/* $OpenBSD: asm_macro.h,v 1.11 2024/06/26 01:40:49 jsg Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1991 Carnegie Mellon University
/*
* Set the PSR.
*/
-static __inline__ void set_psr(u_int psr)
+static __inline__ void
+set_psr(u_int psr)
{
__asm__ volatile ("stcr %0, %%cr1" :: "r" (psr));
flush_pipeline();
/*
* Get the PSR.
*/
-static __inline__ u_int get_psr(void)
+static __inline__ u_int
+get_psr(void)
{
u_int psr;
__asm__ volatile ("ldcr %0, %%cr1" : "=r" (psr));
/*
* Provide access from C code to the assembly instruction ff1
*/
-static __inline__ u_int ff1(u_int val)
+static __inline__ u_int
+ff1(u_int val)
{
__asm__ volatile ("ff1 %0, %0" : "=r" (val) : "0" (val));
return (val);
}
-static __inline__ u_int get_cpu_pid(void)
+static __inline__ u_int
+get_cpu_pid(void)
{
u_int pid;
__asm__ volatile ("ldcr %0, %%cr0" : "=r" (pid));
-/* $OpenBSD: db_trace.c,v 1.19 2023/04/11 00:45:07 jsg Exp $ */
+/* $OpenBSD: db_trace.c,v 1.20 2024/06/26 01:40:49 jsg Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1991 Carnegie Mellon University
#define DPRINTF(stmt) do { } while (0)
#endif
-static inline
-u_int br_dest(vaddr_t addr, u_int inst)
+static inline u_int
+br_dest(vaddr_t addr, u_int inst)
{
inst = (inst & 0x03ffffff) << 2;
/* check if sign extension is needed */
-/* $OpenBSD: octeon_model.h,v 1.8 2022/12/28 01:39:21 yasuoka Exp $ */
+/* $OpenBSD: octeon_model.h,v 1.9 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2007
/*
* get chip id
*/
-static inline uint32_t octeon_get_chipid(void)
+static inline uint32_t
+octeon_get_chipid(void)
{
uint32_t tmp;
-/* $OpenBSD: intr.c,v 1.10 2022/07/27 20:26:17 kettenis Exp $ */
+/* $OpenBSD: intr.c,v 1.11 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2011 Dale Rahn <drahn@openbsd.org>
intr_restore(sie);
}
-void riscv_set_intr_func(int (*raise)(int), int (*lower)(int),
- void (*x)(int), void (*setipl)(int))
+void
+riscv_set_intr_func(int (*raise)(int), int (*lower)(int), void (*x)(int),
+ void (*setipl)(int))
{
riscv_intr_func.raise = raise;
riscv_intr_func.lower = lower;
riscv_intr_func.setipl = setipl;
}
-void riscv_set_intr_handler(void (*intr_handle)(void *))
+void
+riscv_set_intr_handler(void (*intr_handle)(void *))
{
riscv_intr_dispatch = intr_handle;
}
-/* $OpenBSD: interrupt.c,v 1.18 2024/05/22 14:25:47 jsg Exp $ */
+/* $OpenBSD: interrupt.c,v 1.19 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: interrupt.c,v 1.18 2006/01/25 00:02:57 uwe Exp $ */
/*-
}
/* Schedule a software interrupt. */
-void softintr_schedule(void *arg)
+void
+softintr_schedule(void *arg)
{
struct sh_soft_intrhand *sih = arg;
struct sh_soft_intr *si = sih->sih_intrhead;
-/* $OpenBSD: ctlreg.h,v 1.31 2024/03/30 01:13:56 jsg Exp $ */
+/* $OpenBSD: ctlreg.h,v 1.32 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: ctlreg.h,v 1.28 2001/08/06 23:55:34 eeh Exp $ */
/*
static inline void asi_set(int);
-static inline
-void asi_set(int asi)
+static inline void
+asi_set(int asi)
{
sparc_wr(asi, asi, 0);
}
static inline u_int8_t asi_get(void);
-static inline
-u_int8_t asi_get(void)
+static inline u_int8_t
+asi_get(void)
{
return sparc_rd(asi);
}
/* flush address from instruction cache */
static inline void flush(void *);
-static inline
-void flush(void *p)
+static inline void
+flush(void *p)
{
__asm volatile("flush %0"
: : "r" (p)
-/* $OpenBSD: psl.h,v 1.35 2019/06/29 15:41:21 deraadt Exp $ */
+/* $OpenBSD: psl.h,v 1.36 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: psl.h,v 1.20 2001/04/13 23:30:05 thorpej Exp $ */
/*
* GCC pseudo-functions for manipulating privileged registers
*/
static inline u_int64_t getpstate(void);
-static inline
-u_int64_t getpstate(void)
+static inline u_int64_t
+getpstate(void)
{
return (sparc_rdpr(pstate));
}
static inline void setpstate(u_int64_t);
-static inline void setpstate(u_int64_t newpstate)
+static inline void
+setpstate(u_int64_t newpstate)
{
sparc_wrpr(pstate, newpstate, 0);
}
static inline int getcwp(void);
-static inline
-int getcwp(void)
+static inline int
+getcwp(void)
{
return (sparc_rdpr(cwp));
}
}
static inline u_int64_t getver(void);
-static inline
-u_int64_t getver(void)
+static inline u_int64_t
+getver(void)
{
return (sparc_rdpr(ver));
}
-/* $OpenBSD: db_interface.c,v 1.65 2024/05/13 01:15:50 jsg Exp $ */
+/* $OpenBSD: db_interface.c,v 1.66 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: db_interface.c,v 1.61 2001/07/31 06:55:47 eeh Exp $ */
/*
void db_print_itlb_entry(int entry, int i, int endc);
void db_print_dtlb_entry(int entry, int i, int endc);
-extern __inline__ unsigned long db_get_dtlb_data(int entry)
+extern __inline__ unsigned long
+db_get_dtlb_data(int entry)
{
unsigned long r;
__asm__ volatile("ldxa [%1] %2,%0"
: "r" (entry <<3), "i" (ASI_DMMU_TLB_DATA));
return r;
}
-extern __inline__ unsigned long db_get_dtlb_tag(int entry)
+
+extern __inline__ unsigned long
+db_get_dtlb_tag(int entry)
{
unsigned long r;
__asm__ volatile("ldxa [%1] %2,%0"
: "r" (entry <<3), "i" (ASI_DMMU_TLB_TAG));
return r;
}
-extern __inline__ unsigned long db_get_itlb_data(int entry)
+
+extern __inline__ unsigned long
+db_get_itlb_data(int entry)
{
unsigned long r;
__asm__ volatile("ldxa [%1] %2,%0"
: "r" (entry <<3), "i" (ASI_IMMU_TLB_DATA));
return r;
}
-extern __inline__ unsigned long db_get_itlb_tag(int entry)
+
+extern __inline__ unsigned long
+db_get_itlb_tag(int entry)
{
unsigned long r;
__asm__ volatile("ldxa [%1] %2,%0"
return r;
}
-void db_print_dtlb_entry(int entry, int i, int endc)
+void
+db_print_dtlb_entry(int entry, int i, int endc)
{
unsigned long tag, data;
tag = db_get_dtlb_tag(entry);
db_printf("%2d:%16.16lx %16.16lx%c", i, tag, data, endc);
}
-void db_print_itlb_entry(int entry, int i, int endc)
+void
+db_print_itlb_entry(int entry, int i, int endc)
{
unsigned long tag, data;
tag = db_get_itlb_tag(entry);
-/* $OpenBSD: pmap.c,v 1.120 2024/04/13 23:44:11 jsg Exp $ */
+/* $OpenBSD: pmap.c,v 1.121 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: pmap.c,v 1.107 2001/08/31 16:47:41 eeh Exp $ */
/*
*
/*
* Determine (non)existence of physical page
*/
-int pmap_pa_exists(paddr_t pa)
+int
+pmap_pa_exists(paddr_t pa)
{
struct mem_region *mp;
-/* $OpenBSD: diskprobe.c,v 1.7 2023/06/01 17:24:56 krw Exp $ */
+/* $OpenBSD: diskprobe.c,v 1.8 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis <kettenis@openbsd.org>
}
#ifdef BOOT_DEBUG
-void dump_node(int node)
+void
+dump_node(int node)
{
char buf[32];
-/* $OpenBSD: acpidebug.c,v 1.34 2024/05/13 01:15:50 jsg Exp $ */
+/* $OpenBSD: acpidebug.c,v 1.35 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@openbsd.org>
*
db_printf("Not a valid value\n");
}
-void db_disprint(void *arg, const char *fmt, ...)
+void
+db_disprint(void *arg, const char *fmt, ...)
{
va_list ap;
paddr_t evt_tblp;
};
-static inline int iommu_bad(struct iommu_softc *sc)
+static inline int
+iommu_bad(struct iommu_softc *sc)
{
return (sc->flags & IOMMU_FLAGS_BAD);
}
-static inline int iommu_enabled(struct iommu_softc *sc)
+static inline int
+iommu_enabled(struct iommu_softc *sc)
{
if (sc->dte) {
return 1;
#define IQA_QS_32K 7 /* 32768 */
/* Read-Modify-Write helpers */
-static inline void iommu_rmw32(void *ov, uint32_t mask, uint32_t shift, uint32_t nv)
+static inline void
+iommu_rmw32(void *ov, uint32_t mask, uint32_t shift, uint32_t nv)
{
*(uint32_t *)ov &= ~(mask << shift);
*(uint32_t *)ov |= (nv & mask) << shift;
}
-static inline void iommu_rmw64(void *ov, uint32_t mask, uint32_t shift, uint64_t nv)
+
+static inline void
+iommu_rmw64(void *ov, uint32_t mask, uint32_t shift, uint64_t nv)
{
*(uint64_t *)ov &= ~(mask << shift);
*(uint64_t *)ov |= (nv & mask) << shift;
-/* $OpenBSD: dsdt.c,v 1.268 2024/05/14 08:26:13 jsg Exp $ */
+/* $OpenBSD: dsdt.c,v 1.269 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
*
{ AMLOP_COPYOBJECT, "CopyObject", "tS", },
};
-int aml_pc(uint8_t *src)
+int
+aml_pc(uint8_t *src)
{
return src - aml_root.start;
}
*/
int aml_fixup_node(struct aml_node *, void *);
-int aml_fixup_node(struct aml_node *node, void *arg)
+int
+aml_fixup_node(struct aml_node *node, void *arg)
{
struct aml_value *val = arg;
int i;
-/* $OpenBSD: aic7xxx_openbsd.h,v 1.32 2024/05/29 00:48:15 jsg Exp $ */
+/* $OpenBSD: aic7xxx_openbsd.h,v 1.33 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: aic7xxx_osm.h,v 1.7 2003/11/02 11:07:44 wiz Exp $ */
/*
struct scb *);
static __inline void ahc_freeze_scb(struct scb *);
-static __inline
-void ahc_set_transaction_status(struct scb *scb, uint32_t status)
+static __inline void
+ahc_set_transaction_status(struct scb *scb, uint32_t status)
{
scb->xs->error = status;
}
-static __inline
-void ahc_set_scsi_status(struct scb *scb, uint32_t status)
+static __inline void
+ahc_set_scsi_status(struct scb *scb, uint32_t status)
{
scb->xs->status = status;
}
-static __inline
-uint32_t ahc_get_transaction_status(struct scb *scb)
+static __inline uint32_t
+ahc_get_transaction_status(struct scb *scb)
{
if (scb->xs->flags & ITSDONE)
return CAM_REQ_CMP;
return scb->xs->error;
}
-static __inline
-uint32_t ahc_get_scsi_status(struct scb *scb)
+static __inline uint32_t
+ahc_get_scsi_status(struct scb *scb)
{
return (scb->xs->status);
}
-static __inline
-void ahc_set_transaction_tag(struct scb *scb, int enabled, u_int type)
+static __inline void
+ahc_set_transaction_tag(struct scb *scb, int enabled, u_int type)
{
}
-static __inline
-u_long ahc_get_transfer_length(struct scb *scb)
+static __inline u_long
+ahc_get_transfer_length(struct scb *scb)
{
return (scb->xs->datalen);
}
-static __inline
-int ahc_get_transfer_dir(struct scb *scb)
+static __inline int
+ahc_get_transfer_dir(struct scb *scb)
{
return (scb->xs->flags & (SCSI_DATA_IN | SCSI_DATA_OUT));
}
-static __inline
-void ahc_set_residual(struct scb *scb, u_long resid)
+static __inline void
+ahc_set_residual(struct scb *scb, u_long resid)
{
scb->xs->resid = resid;
}
-static __inline
-void ahc_set_sense_residual(struct scb *scb, u_long resid)
+static __inline void
+ahc_set_sense_residual(struct scb *scb, u_long resid)
{
scb->xs->resid = resid;
}
-static __inline
-u_long ahc_get_residual(struct scb *scb)
+static __inline u_long
+ahc_get_residual(struct scb *scb)
{
return (scb->xs->resid);
}
-static __inline
-int ahc_perform_autosense(struct scb *scb)
+static __inline int
+ahc_perform_autosense(struct scb *scb)
{
/* Return true for OpenBSD */
return (1);
-/* $OpenBSD: ami.c,v 1.262 2022/04/16 19:19:58 naddy Exp $ */
+/* $OpenBSD: ami.c,v 1.263 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
return (error);
}
-int ami_ioctl_alarm(struct ami_softc *sc, struct bioc_alarm *ba)
+int
+ami_ioctl_alarm(struct ami_softc *sc, struct bioc_alarm *ba)
{
int error = 0;
u_int8_t func, ret;
-/* $OpenBSD: bt463.c,v 1.13 2014/07/08 17:19:25 deraadt Exp $ */
+/* $OpenBSD: bt463.c,v 1.14 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: bt463.c,v 1.2 2000/06/13 17:21:06 nathanw Exp $ */
/*-
*/
#ifdef BT463_DEBUG
-int bt463_store(void *v)
+int
+bt463_store(void *v)
{
struct bt463data *data = (struct bt463data *)v;
}
-int bt463_readback(void *v)
+int
+bt463_readback(void *v)
{
struct bt463data *data = (struct bt463data *)v;
data->changed = 0;
}
-int bt463_set_cursor (rc, cur)
+int
+bt463_set_cursor (rc, cur)
struct ramdac_cookie *rc;
struct wsdisplay_cursor *cur;
{
return tga_builtin_set_cursor(data->cookie, cur);
}
-int bt463_get_cursor (rc, cur)
+int
+bt463_get_cursor (rc, cur)
struct ramdac_cookie *rc;
struct wsdisplay_cursor *cur;
{
return tga_builtin_get_cursor(data->cookie, cur);
}
-int bt463_set_curpos (rc, cur)
+int
+bt463_set_curpos (rc, cur)
struct ramdac_cookie *rc;
struct wsdisplay_curpos *cur;
{
return tga_builtin_set_curpos(data->cookie, cur);
}
-int bt463_get_curpos (rc, cur)
+int
+bt463_get_curpos (rc, cur)
struct ramdac_cookie *rc;
struct wsdisplay_curpos *cur;
{
return tga_builtin_get_curpos(data->cookie, cur);
}
-int bt463_get_curmax (rc, cur)
+int
+bt463_get_curmax (rc, cur)
struct ramdac_cookie *rc;
struct wsdisplay_curpos *cur;
{
-/* $OpenBSD: iosf.c,v 1.1 2023/04/23 00:20:26 dlg Exp $ */
+/* $OpenBSD: iosf.c,v 1.2 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2023 David Gwynne <dlg@openbsd.org>
rw_exit_write(&iosf_lock);
}
-void iosf_mbi_assert_punit_acquired(void)
+void
+iosf_mbi_assert_punit_acquired(void)
{
int s;
-/* $OpenBSD: rtwn.c,v 1.57 2023/04/28 01:24:14 kevlo Exp $ */
+/* $OpenBSD: rtwn.c,v 1.58 2024/06/26 01:40:49 jsg Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
/*
* Initialize rate adaptation in firmware.
*/
-int rtwn_r92c_ra_init(struct rtwn_softc *sc, u_int8_t mode, u_int32_t rates,
+int
+rtwn_r92c_ra_init(struct rtwn_softc *sc, u_int8_t mode, u_int32_t rates,
int maxrate, uint32_t basicrates, int maxbasicrate)
{
struct r92c_fw_cmd_macid_cfg cmd;
-/* $OpenBSD: ess_isapnp.c,v 1.8 2022/04/06 18:59:28 naddy Exp $ */
+/* $OpenBSD: ess_isapnp.c,v 1.9 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: ess_isa.c,v 1.4 1999/03/18 20:57:11 mycroft Exp $ */
/*-
return 1;
}
-void ess_isapnp_attach(struct device *parent, struct device *self, void *aux)
+void
+ess_isapnp_attach(struct device *parent, struct device *self, void *aux)
{
struct ess_softc *sc = (void *)self;
struct isa_attach_args *ia = aux;
-/* $OpenBSD: eephy.c,v 1.65 2024/03/17 00:06:43 patrick Exp $ */
+/* $OpenBSD: eephy.c,v 1.66 2024/06/26 01:40:49 jsg Exp $ */
/*
* Principal Author: Parag Patel
* Copyright (c) 2001
}
#ifdef __HAVE_FDT
-void eephy_fdt_reg_init(struct mii_softc *sc)
+void
+eephy_fdt_reg_init(struct mii_softc *sc)
{
uint32_t *prop, opage;
int i, len;
-/* $OpenBSD: xmphy.c,v 1.25 2024/05/27 04:58:43 jsg Exp $ */
+/* $OpenBSD: xmphy.c,v 1.26 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2000
NULL },
};
-int xmphy_probe(struct device *parent, void *match, void *aux)
+int
+xmphy_probe(struct device *parent, void *match, void *aux)
{
struct mii_attach_args *ma = aux;
-/* $OpenBSD: bktr_core.c,v 1.44 2024/06/22 10:22:29 jsg Exp $ */
+/* $OpenBSD: bktr_core.c,v 1.45 2024/06/26 01:40:49 jsg Exp $ */
/* $FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.114 2000/10/31 13:09:56 roger Exp $ */
/*
* as one would expect.
*/
-static u_int pixfmt_swap_flags( int pixfmt )
+static u_int
+pixfmt_swap_flags( int pixfmt )
{
const struct meteor_pixfmt *pf = &pixfmt_table[ pixfmt ].public;
u_int swapf = 0;
* our pixfmt_table indices.
*/
-static int oformat_meteor_to_bt( u_int format )
+static int
+oformat_meteor_to_bt( u_int format )
{
int i;
const struct meteor_pixfmt *pf1, *pf2;
-/* $OpenBSD: if_bnxt.c,v 1.50 2024/05/24 06:02:53 jsg Exp $ */
+/* $OpenBSD: if_bnxt.c,v 1.51 2024/06/26 01:40:49 jsg Exp $ */
/*-
* Broadcom NetXtreme-C/E network driver.
*
req->async_event_fwd[bit/32] |= (1 << (bit % 32));
}
-int bnxt_hwrm_func_rgtr_async_events(struct bnxt_softc *softc)
+int
+bnxt_hwrm_func_rgtr_async_events(struct bnxt_softc *softc)
{
struct hwrm_func_drv_rgtr_input req = {0};
int events[] = {
*******************************************************************************/
-/* $OpenBSD: if_em_hw.c,v 1.121 2024/05/24 06:02:53 jsg Exp $ */
+/* $OpenBSD: if_em_hw.c,v 1.122 2024/06/26 01:40:49 jsg Exp $ */
/*
* if_em_hw.c Shared functions for accessing and configuring the MAC
*/
* Called to determine if the I2C pins are being used for I2C or as an
* external MDIO interface since the two options are mutually exclusive.
**/
-int em_sgmii_uses_mdio_82575(struct em_hw *hw)
+int
+em_sgmii_uses_mdio_82575(struct em_hw *hw)
{
uint32_t reg = 0;
int ext_mdio = 0;
* Reads the PHY register at offset using the i2c interface and stores the
* retrieved information in data.
**/
-int32_t em_read_phy_reg_i2c(struct em_hw *hw, uint32_t offset, uint16_t *data)
+int32_t
+em_read_phy_reg_i2c(struct em_hw *hw, uint32_t offset, uint16_t *data)
{
uint32_t i, i2ccmd = 0;
*
* Writes the data to PHY register at the offset using the i2c interface.
**/
-int32_t em_write_phy_reg_i2c(struct em_hw *hw, uint32_t offset, uint16_t data)
+int32_t
+em_write_phy_reg_i2c(struct em_hw *hw, uint32_t offset, uint16_t data)
{
uint32_t i, i2ccmd = 0;
uint16_t phy_data_swapped;
* E1000_I2CCMD_SFP_DIAG_ADDR(<byte offset>) for SFP diagnostics parameters
* access
**/
-int32_t em_read_sfp_data_byte(struct em_hw *hw, uint16_t offset, uint8_t *data)
+int32_t
+em_read_sfp_data_byte(struct em_hw *hw, uint16_t offset, uint8_t *data)
{
uint32_t i = 0;
uint32_t i2ccmd = 0;
-/* $OpenBSD: if_iwx.c,v 1.186 2024/05/24 06:02:53 jsg Exp $ */
+/* $OpenBSD: if_iwx.c,v 1.187 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
return 0;
}
-void iwx_ctxt_info_free_paging(struct iwx_softc *sc)
+void
+iwx_ctxt_info_free_paging(struct iwx_softc *sc)
{
struct iwx_self_init_dram *dram = &sc->init_dram;
int i;
-/* $OpenBSD: if_sk.c,v 1.196 2024/05/24 06:02:57 jsg Exp $ */
+/* $OpenBSD: if_sk.c,v 1.197 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
sc_if->sk_link = 1;
}
-void sk_init_yukon(struct sk_if_softc *sc_if)
+void
+sk_init_yukon(struct sk_if_softc *sc_if)
{
u_int32_t phy, v;
u_int16_t reg;
-/* $OpenBSD: virtio_pci.c,v 1.37 2024/05/17 16:37:10 sf Exp $ */
+/* $OpenBSD: virtio_pci.c,v 1.38 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: virtio.c,v 1.3 2011/11/02 23:05:52 njoly Exp $ */
/*
virtio_pci_poll_intr,
};
-static inline
-uint64_t _cread(struct virtio_pci_softc *sc, unsigned off, unsigned size)
+static inline uint64_t
+_cread(struct virtio_pci_softc *sc, unsigned off, unsigned size)
{
uint64_t val;
switch (size) {
-/* $OpenBSD: yds.c,v 1.64 2024/05/24 06:02:58 jsg Exp $ */
+/* $OpenBSD: yds.c,v 1.65 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: yds.c,v 1.5 2001/05/21 23:55:04 minoura Exp $ */
/*
void YWRITE2(struct yds_softc *sc,bus_size_t r,u_int16_t x);
void YWRITE4(struct yds_softc *sc,bus_size_t r,u_int32_t x);
-u_int16_t YREAD2(struct yds_softc *sc,bus_size_t r)
+u_int16_t
+YREAD2(struct yds_softc *sc,bus_size_t r)
{
DPRINTFN(5, (" YREAD2(0x%lX)\n",(unsigned long)r));
return bus_space_read_2(sc->memt,sc->memh,r);
}
-u_int32_t YREAD4(struct yds_softc *sc,bus_size_t r)
+
+u_int32_t
+YREAD4(struct yds_softc *sc,bus_size_t r)
{
DPRINTFN(5, (" YREAD4(0x%lX)\n",(unsigned long)r));
return bus_space_read_4(sc->memt,sc->memh,r);
}
-void YWRITE1(struct yds_softc *sc,bus_size_t r,u_int8_t x)
+
+void
+YWRITE1(struct yds_softc *sc,bus_size_t r,u_int8_t x)
{
DPRINTFN(5, (" YWRITE1(0x%lX,0x%lX)\n",(unsigned long)r,(unsigned long)x));
bus_space_write_1(sc->memt,sc->memh,r,x);
}
-void YWRITE2(struct yds_softc *sc,bus_size_t r,u_int16_t x)
+
+void
+YWRITE2(struct yds_softc *sc,bus_size_t r,u_int16_t x)
{
DPRINTFN(5, (" YWRITE2(0x%lX,0x%lX)\n",(unsigned long)r,(unsigned long)x));
bus_space_write_2(sc->memt,sc->memh,r,x);
}
-void YWRITE4(struct yds_softc *sc,bus_size_t r,u_int32_t x)
+
+void
+YWRITE4(struct yds_softc *sc,bus_size_t r,u_int32_t x)
{
DPRINTFN(5, (" YWRITE4(0x%lX,0x%lX)\n",(unsigned long)r,(unsigned long)x));
bus_space_write_4(sc->memt,sc->memh,r,x);
-/* $OpenBSD: if_vio.c,v 1.40 2024/06/10 19:26:17 jan Exp $ */
+/* $OpenBSD: if_vio.c,v 1.41 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2012 Stefan Fritsch, Alexander Fiveg.
}
}
-static int vio_needs_reset(struct vio_softc *sc)
+static int
+vio_needs_reset(struct vio_softc *sc)
{
if (virtio_get_status(sc->sc_virtio) &
VIRTIO_CONFIG_DEVICE_STATUS_DEVICE_NEEDS_RESET) {
-/* $OpenBSD: vioblk.c,v 1.38 2024/05/24 10:05:55 jsg Exp $ */
+/* $OpenBSD: vioblk.c,v 1.39 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2012 Stefan Fritsch.
vioblk_scsi_cmd, NULL, NULL, NULL, NULL
};
-int vioblk_match(struct device *parent, void *match, void *aux)
+int
+vioblk_match(struct device *parent, void *match, void *aux)
{
struct virtio_softc *va = aux;
if (va->sc_childdevid == PCI_PRODUCT_VIRTIO_BLOCK)
-/* $OpenBSD: viocon.c,v 1.11 2024/05/24 10:05:55 jsg Exp $ */
+/* $OpenBSD: viocon.c,v 1.12 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2013-2015 Stefan Fritsch <sf@sfritsch.de>
return dev2sc(dev)->sc_ports[VIOCONPORT(dev)];
}
-int viocon_match(struct device *parent, void *match, void *aux)
+int
+viocon_match(struct device *parent, void *match, void *aux)
{
struct virtio_softc *va = aux;
if (va->sc_childdevid == PCI_PRODUCT_VIRTIO_CONSOLE)
-/* $OpenBSD: viornd.c,v 1.8 2024/05/24 10:05:55 jsg Exp $ */
+/* $OpenBSD: viornd.c,v 1.9 2024/06/26 01:40:49 jsg Exp $ */
/*
* Copyright (c) 2014 Stefan Fritsch <sf@sfritsch.de>
NULL, "viornd", DV_DULL
};
-
-int viornd_match(struct device *parent, void *match, void *aux)
+int
+viornd_match(struct device *parent, void *match, void *aux)
{
struct virtio_softc *va = aux;
if (va->sc_childdevid == PCI_PRODUCT_VIRTIO_ENTROPY)
-/* $OpenBSD: wsmouse.c,v 1.72 2024/05/17 20:11:58 miod Exp $ */
+/* $OpenBSD: wsmouse.c,v 1.73 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: wsmouse.c,v 1.35 2005/02/27 00:27:52 perry Exp $ */
/*
return (-1);
}
-struct wsmousehw *wsmouse_get_hw(struct device *sc)
+struct wsmousehw *
+wsmouse_get_hw(struct device *sc)
{
return &((struct wsmouse_softc *) sc)->sc_input.hw;
}
-/* $OpenBSD: kern_malloc.c,v 1.151 2023/12/14 14:04:57 claudio Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.152 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
#ifndef SMALL_KERNEL
__inline__
#endif
-long BUCKETINDX(size_t sz)
+long
+BUCKETINDX(size_t sz)
{
long b, d;
-/* $OpenBSD: if_pppoe.c,v 1.83 2022/07/14 11:03:15 mvs Exp $ */
+/* $OpenBSD: if_pppoe.c,v 1.84 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: if_pppoe.c,v 1.51 2003/11/28 08:56:48 keihan Exp $ */
/*
struct mbuf_queue pppoeinq = MBUF_QUEUE_INITIALIZER(
IFQ_MAXLEN, IPL_SOFTNET);
-void pppoeintr(void)
+void
+pppoeintr(void)
{
struct mbuf_list ml;
struct mbuf *m;
-/* $OpenBSD: nfs_syscalls.c,v 1.126 2024/05/01 13:15:59 jsg Exp $ */
+/* $OpenBSD: nfs_syscalls.c,v 1.127 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */
/*
return (0);
}
-static inline int nfssvc_checknam(struct mbuf *nam)
+static inline int
+nfssvc_checknam(struct mbuf *nam)
{
struct sockaddr_in *sin;