-/* $OpenBSD: amdcf.c,v 1.9 2022/10/23 19:33:39 krw Exp $ */
+/* $OpenBSD: amdcf.c,v 1.10 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2007, Juniper Networks, Inc.
void cfi_array_write(struct amdcf_softc *sc, u_int, u_int, u_int);
void cfi_amd_write(struct amdcf_softc *, u_int, u_int, u_int);
-uint8_t cfi_read_qry(struct amdcf_softc *, uint64_t);
uint8_t cfi_read(struct amdcf_softc *, bus_size_t, bus_size_t);
void cfi_write(struct amdcf_softc *, bus_size_t, bus_size_t, uint8_t);
int cfi_wait_ready(struct amdcf_softc *, u_int, u_int, u_int);
-/* $OpenBSD: cn30xxasxvar.h,v 1.4 2022/12/28 01:39:21 yasuoka Exp $ */
+/* $OpenBSD: cn30xxasxvar.h,v 1.5 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
struct cn30xxasx_softc **);
int cn30xxasx_enable(struct cn30xxasx_softc *, int);
int cn30xxasx_clk_set(struct cn30xxasx_softc *, int, int);
-uint64_t cn30xxasx_int_summary(struct cn30xxasx_softc *sc);
#endif
-/* $OpenBSD: cn30xxfauvar.h,v 1.4 2022/12/28 01:39:21 yasuoka Exp $ */
+/* $OpenBSD: cn30xxfauvar.h,v 1.5 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
uint64_t cn30xxfau_op_save(struct cn30xxfau_desc *);
void cn30xxfau_op_restore(struct cn30xxfau_desc *, uint64_t);
int64_t cn30xxfau_op_inc_8(struct cn30xxfau_desc *, int64_t);
-int32_t cn30xxfau_op_inc_4(struct cn30xxfau_desc *, int32_t);
-int16_t cn30xxfau_op_inc_2(struct cn30xxfau_desc *, int16_t);
-int8_t cn30xxfau_op_inc_1(struct cn30xxfau_desc *, int8_t);
int64_t cn30xxfau_op_incwait_8(struct cn30xxfau_desc *, int);
-int32_t cn30xxfau_op_incwait_4(struct cn30xxfau_desc *, int);
-int16_t cn30xxfau_op_incwait_2(struct cn30xxfau_desc *, int);
-int8_t cn30xxfau_op_incwait_1(struct cn30xxfau_desc *, int);
-int64_t cn30xxfau_op_get_8(struct cn30xxfau_desc *);
-int32_t cn30xxfau_op_get_4(struct cn30xxfau_desc *);
-int16_t cn30xxfau_op_get_2(struct cn30xxfau_desc *);
-int8_t cn30xxfau_op_get_1(struct cn30xxfau_desc *);
-int64_t cn30xxfau_op_getwait_8(struct cn30xxfau_desc *);
-int32_t cn30xxfau_op_getwait_4(struct cn30xxfau_desc *);
-int16_t cn30xxfau_op_getwait_2(struct cn30xxfau_desc *);
-int8_t cn30xxfau_op_getwait_1(struct cn30xxfau_desc *);
void cn30xxfau_op_add_8(struct cn30xxfau_desc *, int64_t);
-void cn30xxfau_op_add_4(struct cn30xxfau_desc *, int32_t);
-void cn30xxfau_op_add_2(struct cn30xxfau_desc *, int16_t);
-void cn30xxfau_op_add_1(struct cn30xxfau_desc *, int8_t);
void cn30xxfau_op_set_8(struct cn30xxfau_desc *, int64_t);
-void cn30xxfau_op_set_4(struct cn30xxfau_desc *, int32_t);
-void cn30xxfau_op_set_2(struct cn30xxfau_desc *, int16_t);
-void cn30xxfau_op_set_1(struct cn30xxfau_desc *, int8_t);
/* ---- old API */
-/* $OpenBSD: cn30xxfpa.c,v 1.10 2022/12/28 01:39:21 yasuoka Exp $ */
+/* $OpenBSD: cn30xxfpa.c,v 1.11 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
void cn30xxfpa_bootstrap(struct octeon_config *);
void cn30xxfpa_reset(void);
-void cn30xxfpa_int_enable(struct cn30xxfpa_softc *, int);
void cn30xxfpa_buf_dma_alloc(struct cn30xxfpa_buf *);
void cn30xxfpa_init(struct cn30xxfpa_softc *);
-/* $OpenBSD: cn30xxfpavar.h,v 1.8 2022/12/28 01:39:21 yasuoka Exp $ */
+/* $OpenBSD: cn30xxfpavar.h,v 1.9 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
* All rights reserved.
int fb_dma_nsegs;
};
-uint64_t cn30xxfpa_int_summary(void);
int cn30xxfpa_buf_init(int, size_t, size_t, struct cn30xxfpa_buf **);
void *cn30xxfpa_buf_get(struct cn30xxfpa_buf *);
uint64_t cn30xxfpa_query(int);
-/* $OpenBSD: cn30xxgmx.c,v 1.53 2022/12/28 01:39:21 yasuoka Exp $ */
+/* $OpenBSD: cn30xxgmx.c,v 1.54 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
int cn30xxgmx_match(struct device *, void *, void *);
void cn30xxgmx_attach(struct device *, struct device *, void *);
int cn30xxgmx_print(void *, const char *);
-int cn30xxgmx_port_phy_addr(int);
void cn30xxgmx_init(struct cn30xxgmx_softc *);
int cn30xxgmx_rx_frm_ctl_xable(struct cn30xxgmx_port_softc *,
uint64_t, int);
-/* $OpenBSD: cn30xxgmxvar.h,v 1.13 2022/12/28 01:39:21 yasuoka Exp $ */
+/* $OpenBSD: cn30xxgmxvar.h,v 1.14 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
int cn30xxgmx_reset_speed(struct cn30xxgmx_port_softc *);
int cn30xxgmx_reset_flowctl(struct cn30xxgmx_port_softc *);
int cn30xxgmx_reset_timing(struct cn30xxgmx_port_softc *);
-uint64_t cn30xxgmx_get_rx_int_reg(struct cn30xxgmx_port_softc *sc);
-uint64_t cn30xxgmx_get_tx_int_reg(struct cn30xxgmx_port_softc *sc);
#if NKSTAT > 0
void cn30xxgmx_kstat_read(struct cn30xxgmx_port_softc *,
struct kstat_kv *);
-/* $OpenBSD: cn30xxpipvar.h,v 1.5 2022/12/28 01:39:21 yasuoka Exp $ */
+/* $OpenBSD: cn30xxpipvar.h,v 1.6 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
void cn30xxpip_init(struct cn30xxpip_attach_args *,
struct cn30xxpip_softc **);
-void cn30xxpip_gbl_ctl_debug(struct cn30xxpip_softc *);
int cn30xxpip_port_config(struct cn30xxpip_softc *);
void cn30xxpip_prt_cfg_enable(struct cn30xxpip_softc *,
uint64_t, int);
-/* $OpenBSD: cn30xxpkovar.h,v 1.6 2022/12/28 01:39:21 yasuoka Exp $ */
+/* $OpenBSD: cn30xxpkovar.h,v 1.7 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
void cn30xxpko_config(struct cn30xxpko_softc *);
int cn30xxpko_port_enable(struct cn30xxpko_softc *, int);
int cn30xxpko_port_config(struct cn30xxpko_softc *);
-void cn30xxpko_int_enable(struct cn30xxpko_softc *, int);
-uint64_t cn30xxpko_int_summary(struct cn30xxpko_softc *);
static inline uint64_t cn30xxpko_cmd_word0(int, int, int, int, int, int,
int, int, int, int, int, int, int, int, int, int);
static inline uint64_t cn30xxpko_cmd_word1(int, int, int, int, paddr_t);
-/* $OpenBSD: cn30xxpowvar.h,v 1.6 2022/12/28 01:39:21 yasuoka Exp $ */
+/* $OpenBSD: cn30xxpowvar.h,v 1.7 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
void cn30xxpow_work_request_async(uint64_t, uint64_t);
uint64_t *cn30xxpow_work_response_async(uint64_t);
void cn30xxpow_ops_swtag(int, uint32_t);
-void cn30xxpow_intr_set_freedback_queue(int, void *);
static inline void
cn30xxpow_config_int_pc(struct cn30xxpow_softc *sc, int unit)
-/* $OpenBSD: cn30xxsmi.c,v 1.11 2022/12/28 01:39:21 yasuoka Exp $ */
+/* $OpenBSD: cn30xxsmi.c,v 1.12 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
int cn30xxsmi_match(struct device *, void *, void *);
void cn30xxsmi_attach(struct device *, struct device *, void *);
-void cn30xxsmi_enable(struct cn30xxsmi_softc *);
-
const struct cfattach octsmi_ca = {
sizeof(struct cn30xxsmi_softc), cn30xxsmi_match, cn30xxsmi_attach
};
-/* $OpenBSD: if_cnmac.c,v 1.85 2023/11/10 15:51:19 bluhm Exp $ */
+/* $OpenBSD: if_cnmac.c,v 1.86 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
void cnmac_pip_init(struct cnmac_softc *);
void cnmac_ipd_init(struct cnmac_softc *);
void cnmac_pko_init(struct cnmac_softc *);
-void cnmac_smi_init(struct cnmac_softc *);
void cnmac_board_mac_addr(uint8_t *);
void cnmac_send_queue_del(struct cnmac_softc *,
struct mbuf **, uint64_t **);
int cnmac_buf_free_work(struct cnmac_softc *, uint64_t *);
-void cnmac_buf_ext_free(caddr_t, u_int, void *);
int cnmac_ioctl(struct ifnet *, u_long, caddr_t);
void cnmac_watchdog(struct ifnet *);
-/* $OpenBSD: if_ogx.c,v 1.6 2021/07/29 14:11:53 visa Exp $ */
+/* $OpenBSD: if_ogx.c,v 1.7 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2019-2020 Visa Hankala
int ogx_sgmii_link_init(struct ogx_softc *);
void ogx_sgmii_link_down(struct ogx_softc *);
void ogx_sgmii_link_change(struct ogx_softc *);
-int ogx_sgmii_link_status(struct ogx_softc *);
static inline paddr_t
ogx_kvtophys(vaddr_t kva)
-/* $OpenBSD: iobusvar.h,v 1.3 2015/07/19 23:46:50 jasper Exp $ */
+/* $OpenBSD: iobusvar.h,v 1.4 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2001-2003 Opsycon AB (www.opsycon.se / www.opsycon.com)
int iobus_space_map(bus_space_tag_t, bus_addr_t, bus_size_t, int,
bus_space_handle_t *);
void iobus_space_unmap(bus_space_tag_t, bus_space_handle_t, bus_size_t);
-int iobus_space_region(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- bus_size_t, bus_space_handle_t *);
-
-void *iobus_space_vaddr(bus_space_tag_t, bus_space_handle_t);
#endif /* _IOBUSVAR_H_ */
-/* $OpenBSD: octcf.c,v 1.35 2022/10/23 19:33:39 krw Exp $ */
+/* $OpenBSD: octcf.c,v 1.36 2024/05/20 23:13:33 jsg Exp $ */
/* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */
/*
void octcfattach(struct device *, struct device *, void *);
int octcfdetach(struct device *, int);
int octcfactivate(struct device *, int);
-int octcfprint(void *, char *);
const struct cfattach octcf_ca = {
sizeof(struct octcf_softc), octcfprobe, octcfattach,
-/* $OpenBSD: octeon_iobus.c,v 1.26 2022/04/06 18:59:27 naddy Exp $ */
+/* $OpenBSD: octeon_iobus.c,v 1.27 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2000-2004 Opsycon AB (www.opsycon.se)
int iobussubmatch(struct device *, void *, void *);
int iobussearch(struct device *, void *, void *);
-u_int8_t iobus_read_1(bus_space_tag_t, bus_space_handle_t, bus_size_t);
-u_int16_t iobus_read_2(bus_space_tag_t, bus_space_handle_t, bus_size_t);
-u_int32_t iobus_read_4(bus_space_tag_t, bus_space_handle_t, bus_size_t);
-u_int64_t iobus_read_8(bus_space_tag_t, bus_space_handle_t, bus_size_t);
-
void iobus_write_1(bus_space_tag_t, bus_space_handle_t, bus_size_t,
u_int8_t);
void iobus_write_2(bus_space_tag_t, bus_space_handle_t, bus_size_t,
-/* $OpenBSD: pci_machdep.h,v 1.12 2022/01/08 05:34:54 visa Exp $ */
+/* $OpenBSD: pci_machdep.h,v 1.13 2024/05/20 23:13:33 jsg Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
#define pci_min_powerstate(c, t) (PCI_PMCSR_STATE_D3)
#define pci_set_powerstate_md(c, t, s, p)
-/*
- * Functions used during early system configuration.
- */
-
-pcitag_t pci_make_tag_early(int, int, int);
-pcireg_t pci_conf_read_early(pcitag_t, int);
-
#define pci_dev_postattach(a, b)