1*8eadc5ecSjsg /* $OpenBSD: ccpvar.h,v 1.6 2024/09/04 07:45:08 jsg Exp $ */ 25f5e4d1bSdlg 35f5e4d1bSdlg /* 45f5e4d1bSdlg * Copyright (c) 2018 David Gwynne <dlg@openbsd.org> 55f5e4d1bSdlg * 65f5e4d1bSdlg * Permission to use, copy, modify, and distribute this software for any 75f5e4d1bSdlg * purpose with or without fee is hereby granted, provided that the above 85f5e4d1bSdlg * copyright notice and this permission notice appear in all copies. 95f5e4d1bSdlg * 105f5e4d1bSdlg * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 115f5e4d1bSdlg * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 125f5e4d1bSdlg * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 135f5e4d1bSdlg * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 145f5e4d1bSdlg * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 155f5e4d1bSdlg * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 165f5e4d1bSdlg * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 175f5e4d1bSdlg */ 185f5e4d1bSdlg 195f5e4d1bSdlg #include <sys/timeout.h> 205f5e4d1bSdlg 215f5e4d1bSdlg struct ccp_softc { 225f5e4d1bSdlg struct device sc_dev; 235f5e4d1bSdlg bus_space_tag_t sc_iot; 245f5e4d1bSdlg bus_space_handle_t sc_ioh; 255f5e4d1bSdlg 265f5e4d1bSdlg struct timeout sc_tick; 27*8eadc5ecSjsg struct device *sc_psp; 28*8eadc5ecSjsg void *sc_irqh; 295f5e4d1bSdlg }; 305f5e4d1bSdlg 315f5e4d1bSdlg void ccp_attach(struct ccp_softc *); 32