-/* $OpenBSD: aac.c,v 1.94 2022/04/16 19:19:58 naddy Exp $ */
+/* $OpenBSD: aac.c,v 1.95 2023/07/13 07:31:12 jsg Exp $ */
/*-
* Copyright (c) 2000 Michael Smith
}
void
-aac_eval_mapping(size, cyls, heads, secs)
- u_int32_t size;
- int *cyls, *heads, *secs;
+aac_eval_mapping(u_int32_t size, int *cyls, int *heads, int *secs)
{
*cyls = size / AAC_HEADS / AAC_SECS;
if (*cyls < AAC_MAXCYLS) {
-/* $OpenBSD: aacvar.h,v 1.16 2022/01/09 05:42:37 jsg Exp $ */
+/* $OpenBSD: aacvar.h,v 1.17 2023/07/13 07:31:12 jsg Exp $ */
/*-
* Copyright (c) 2000 Michael Smith
/* These all require correctly aligned buffers */
static __inline__ void
-aac_enc16(addr, value)
- u_int8_t *addr;
- u_int16_t value;
+aac_enc16(u_int8_t *addr, u_int16_t value)
{
*(u_int16_t *)addr = htole16(value);
}
static __inline__ void
-aac_enc32(addr, value)
- u_int8_t *addr;
- u_int32_t value;
+aac_enc32(u_int8_t *addr, u_int32_t value)
{
*(u_int32_t *)addr = htole32(value);
}
static __inline__ u_int16_t
-aac_dec16(addr)
- u_int8_t *addr;
+aac_dec16(u_int8_t *addr)
{
return letoh16(*(u_int16_t *)addr);
}
static __inline__ u_int32_t
-aac_dec32(addr)
- u_int8_t *addr;
+aac_dec32(u_int8_t *addr)
{
return letoh32(*(u_int32_t *)addr);
}
-/* $OpenBSD: aac_pci.c,v 1.26 2022/03/11 18:00:45 mpi Exp $ */
+/* $OpenBSD: aac_pci.c,v 1.27 2023/07/13 07:31:12 jsg Exp $ */
/*-
* Copyright (c) 2000 Michael Smith
* Determine whether this is one of our supported adapters.
*/
int
-aac_pci_probe(parent, match, aux)
- struct device *parent;
- void *match;
- void *aux;
+aac_pci_probe(struct device *parent, void *match, void *aux)
{
struct pci_attach_args *pa = aux;
struct aac_ident *m;
}
void
-aac_pci_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+aac_pci_attach(struct device *parent, struct device *self, void *aux)
{
struct pci_attach_args *pa = aux;
pci_chipset_tag_t pc = pa->pa_pc;