Clean this up a bit. Use register names that match the documentation, and
authorkettenis <kettenis@openbsd.org>
Sun, 13 Jun 2021 09:19:14 +0000 (09:19 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 13 Jun 2021 09:19:14 +0000 (09:19 +0000)
commit8635161081941a0bc30ca8ee0d95493e4aa171ff
tree0b90c8510eb8fb26cfed0bc210e271118dc689eb
parent5e422abe5fb3af97eec72848b2e7701656e6eb31
Clean this up a bit.  Use register names that match the documentation, and
fix some register number.  Drop reading the Interrupt Pending register
in the interrupt handler as this was actually reading the Interrupt Enable
register and the bits that were checked were always true.  Fix bogus
code in sfuartcnputc() and simplyfy sfuartcngetc().  Throw in some
style fixes for good measure.
sys/arch/riscv64/dev/sfuart.c