diff options
| author | thorpej <thorpej@NetBSD.org> | 2018-12-11 06:34:00 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2018-12-11 06:34:00 +0000 |
| commit | a813db806e5bb1db99e2da8a25f3e9c96ab54649 (patch) | |
| tree | 0473678dce005af905cb032d33ea29b6da8dbaf8 /sys/dev/ic/comvar.h | |
| parent | cfec4bd15f0c636b80b0a0995487d6ff963571aa (diff) | |
Add a convenience function, com_init_regs_stride(), that shifts the register
offsets and size by the specified amount. Use in front-ends as appropriate.
Diffstat (limited to 'sys/dev/ic/comvar.h')
| -rw-r--r-- | sys/dev/ic/comvar.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/comvar.h b/sys/dev/ic/comvar.h index 018037a0c84..cc4e8927950 100644 --- a/sys/dev/ic/comvar.h +++ b/sys/dev/ic/comvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: comvar.h,v 1.90 2018/12/08 21:14:37 thorpej Exp $ */ +/* $NetBSD: comvar.h,v 1.91 2018/12/11 06:34:00 thorpej Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -106,6 +106,8 @@ struct com_regs { void com_init_regs(struct com_regs *, bus_space_tag_t, bus_space_handle_t, bus_addr_t); +void com_init_regs_stride(struct com_regs *, bus_space_tag_t, + bus_space_handle_t, bus_addr_t, u_int); struct comcons_info { struct com_regs regs; |
