-/* $OpenBSD: magma.c,v 1.35 2022/07/02 08:50:42 visa Exp $ */
+/* $OpenBSD: magma.c,v 1.36 2024/04/24 09:30:30 claudio Exp $ */
/*-
* Copyright (c) 1998 Iain Hibbert
*
* cd1400_compute_baud calculate COR/BPR register values
* cd1400_write_ccr write a value to CD1400 ccr
- * cd1400_read_reg read from a CD1400 register
- * cd1400_write_reg write to a CD1400 register
* cd1400_enable_transmitter enable transmitting on CD1400 channel
*/
/*
* Write a CD1400 channel command, should have a timeout?
*/
-__inline void
+static inline void
cd1400_write_ccr(struct cd1400 *cd, u_char cmd)
{
while (CD1400_READ_REG(cd, CD1400_CCR))
- /*EMPTY*/;
+ continue;
CD1400_WRITE_REG(cd, CD1400_CCR, cmd);
}
-/* $OpenBSD: magmareg.h,v 1.10 2020/02/18 00:12:08 cheloha Exp $ */
+/* $OpenBSD: magmareg.h,v 1.11 2024/04/24 09:30:30 claudio Exp $ */
/*-
* Copyright (c) 1998 Iain Hibbert
/* internal function prototypes */
int cd1400_compute_baud(speed_t, int, int *, int *);
-__inline void cd1400_write_ccr(struct cd1400 *, u_char);
-__inline u_char cd1400_read_reg(struct cd1400 *, int);
-__inline void cd1400_write_reg(struct cd1400 *, int, u_char);
void cd1400_enable_transmitter(struct cd1400 *, int);
int magma_match(struct device *, void *, void *);