sync with OpenBSD -current
This commit is contained in:
parent
12ef7bd342
commit
87d00f0a9c
16 changed files with 40 additions and 68 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $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
|
||||
|
@ -187,8 +187,6 @@ struct cfdriver mbpp_cd = {
|
|||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
|
@ -224,11 +222,11 @@ cd1400_compute_baud(speed_t speed, int clock, int *cor, int *bpr)
|
|||
/*
|
||||
* 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);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $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
|
||||
|
@ -197,9 +197,6 @@ struct mbpp_softc {
|
|||
/* 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 *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue