-/* $OpenBSD: db_disasm.c,v 1.25 2019/11/07 14:44:52 mpi Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.26 2024/06/22 10:22:29 jsg Exp $ */
/* $NetBSD: db_disasm.c,v 1.8 2000/05/25 19:57:30 jhawk Exp $ */
/*
static const char *register_name(int);
static const char *
-register_name (ireg)
+register_name(ireg)
int ireg;
{
int i;
-/* $OpenBSD: cpu.h,v 1.77 2024/02/25 19:15:50 cheloha Exp $ */
+/* $OpenBSD: cpu.h,v 1.78 2024/06/22 10:22:29 jsg Exp $ */
/* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */
/*
}
#define FUNC_SPR(n, name) \
-static __inline u_int32_t ppc_mf ## name (void) \
+static __inline u_int32_t ppc_mf ## name(void) \
{ \
u_int32_t ret; \
__asm volatile ("mfspr %0," # n : "=r" (ret)); \
return ret; \
} \
-static __inline void ppc_mt ## name (u_int32_t val) \
+static __inline void ppc_mt ## name(u_int32_t val) \
{ \
__asm volatile ("mtspr "# n ",%0" :: "r" (val)); \
} \
FUNC_SPR(1023, pir)
static __inline u_int32_t
-ppc_mftbl (void)
+ppc_mftbl(void)
{
int ret;
__asm volatile ("mftb %0" : "=r" (ret));
}
static __inline u_int32_t
-ppc_mfmsr (void)
+ppc_mfmsr(void)
{
int ret;
__asm volatile ("mfmsr %0" : "=r" (ret));
}
static __inline void
-ppc_mtmsr (u_int32_t val)
+ppc_mtmsr(u_int32_t val)
{
__asm volatile ("mtmsr %0" :: "r" (val));
}
-/* $OpenBSD: atapiscsi.c,v 1.121 2024/05/26 10:01:01 jsg Exp $ */
+/* $OpenBSD: atapiscsi.c,v 1.122 2024/06/22 10:22:29 jsg Exp $ */
/*
* This code is derived from code with the copyright below.
}
int
-wdc_atapi_ioctl (struct scsi_link *sc_link, u_long cmd, caddr_t addr, int flag)
+wdc_atapi_ioctl(struct scsi_link *sc_link, u_long cmd, caddr_t addr, int flag)
{
struct atapiscsi_softc *as = sc_link->bus->sb_adapter_softc;
struct channel_softc *chp = as->chp;
-/* $OpenBSD: trm.c,v 1.45 2024/05/13 01:15:50 jsg Exp $
+/* $OpenBSD: trm.c,v 1.46 2024/06/22 10:22:29 jsg Exp $
* ------------------------------------------------------------
* O.S : OpenBSD
* File Name : trm.c
* ------------------------------------------------------------
*/
void
-trm_reset (struct trm_softc *sc)
+trm_reset(struct trm_softc *sc)
{
const bus_space_handle_t ioh = sc->sc_iohandle;
const bus_space_tag_t iot = sc->sc_iotag;
-/* $OpenBSD: gus.c,v 1.56 2024/05/28 09:27:08 jsg Exp $ */
+/* $OpenBSD: gus.c,v 1.57 2024/06/22 10:22:29 jsg Exp $ */
/* $NetBSD: gus.c,v 1.51 1998/01/25 23:48:06 mycroft Exp $ */
/*-
*/
int
-gus_test_iobase (bus_space_tag_t iot, int iobase)
+gus_test_iobase(bus_space_tag_t iot, int iobase)
{
bus_space_handle_t ioh1, ioh2, ioh3, ioh4;
u_char s1, s2;
-/* $OpenBSD: if_ex.c,v 1.49 2023/05/30 08:30:01 jsg Exp $ */
+/* $OpenBSD: if_ex.c,v 1.50 2024/06/22 10:22:29 jsg Exp $ */
/*
* Copyright (c) 1997, Donald A. Schmidt
* Copyright (c) 1996, Javier MartÃn Rueda (jmrueda@diatel.upm.es)
}
int
-ex_ifmedia_upd (struct ifnet *ifp)
+ex_ifmedia_upd(struct ifnet *ifp)
{
struct ex_softc *sc = ifp->if_softc;
-/* $OpenBSD: bktr_core.c,v 1.43 2022/01/09 05:42:58 jsg Exp $ */
+/* $OpenBSD: bktr_core.c,v 1.44 2024/06/22 10:22:29 jsg Exp $ */
/* $FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.114 2000/10/31 13:09:56 roger Exp $ */
/*
#define BKTR_TEST_RISC_STATUS_BIT3 (1U << 31)
static bool_t
-notclipped (bktr_reg_t * bktr, int x, int width) {
+notclipped(bktr_reg_t * bktr, int x, int width) {
int i;
bktr_clip_t * clip_node;
bktr->clip_start = -1;
-/* $OpenBSD: sv.c,v 1.44 2024/05/24 06:02:58 jsg Exp $ */
+/* $OpenBSD: sv.c,v 1.45 2024/06/22 10:22:29 jsg Exp $ */
/*
* Copyright (c) 1998 Constantine Paul Sapuntzakis
static void sv_init_mixer(struct sv_softc *);
static __inline__ void
-sv_write (struct sv_softc *sc, u_int8_t reg, u_int8_t val)
+sv_write(struct sv_softc *sc, u_int8_t reg, u_int8_t val)
{
bus_space_write_1(sc->sc_iot, sc->sc_ioh, reg, val);
}
static __inline__ u_int8_t
-sv_read (struct sv_softc *sc, u_int8_t reg)
+sv_read(struct sv_softc *sc, u_int8_t reg)
{
return (bus_space_read_1(sc->sc_iot, sc->sc_ioh, reg));
}
static __inline__ u_int8_t
-sv_read_indirect (struct sv_softc *sc, u_int8_t reg)
+sv_read_indirect(struct sv_softc *sc, u_int8_t reg)
{
u_int8_t iaddr = 0;
}
static __inline__ void
-sv_write_indirect (struct sv_softc *sc, u_int8_t reg, u_int8_t val)
+sv_write_indirect(struct sv_softc *sc, u_int8_t reg, u_int8_t val)
{
u_int8_t iaddr = 0;
#ifdef DIAGNOSTIC
-/* $OpenBSD: tga.c,v 1.43 2022/07/15 17:57:26 kettenis Exp $ */
+/* $OpenBSD: tga.c,v 1.44 2024/06/22 10:22:29 jsg Exp $ */
/* $NetBSD: tga.c,v 1.40 2002/03/13 15:05:18 ad Exp $ */
/*
}
void
-tga_config_interrupts (d)
+tga_config_interrupts(d)
struct device *d;
{
struct tga_softc *sc = (struct tga_softc *)d;
}
int
-tga_erasecols (c, row, col, num, attr)
+tga_erasecols(c, row, col, num, attr)
void *c;
int row, col, num;
uint32_t attr;
#ifndef _KERNEL
void
-print_xf86_mode (struct videomode *vmp)
+print_xf86_mode(struct videomode *vmp)
{
float vf, hf;
}
int
-main (int argc, char *argv[])
+main(int argc, char *argv[])
{
struct videomode m;
-/* $OpenBSD: kern_descrip.c,v 1.207 2022/12/05 23:18:37 deraadt Exp $ */
+/* $OpenBSD: kern_descrip.c,v 1.208 2024/06/22 10:22:29 jsg Exp $ */
/* $NetBSD: kern_descrip.c,v 1.42 1996/03/30 22:24:38 christos Exp $ */
/*
}
static __inline int
-find_next_zero (u_int *bitmap, int want, u_int bits)
+find_next_zero(u_int *bitmap, int want, u_int bits)
{
int i, off, maxoff;
u_int sub;
-/* $OpenBSD: if_spppsubr.c,v 1.193 2024/05/13 01:15:53 jsg Exp $ */
+/* $OpenBSD: if_spppsubr.c,v 1.194 2024/06/22 10:22:29 jsg Exp $ */
/*
* Synchronous PPP link level subroutines.
*
}
void
-sppp_increasing_timeout (const struct cp *cp, struct sppp *sp)
+sppp_increasing_timeout(const struct cp *cp, struct sppp *sp)
{
int timo;