libchip ns16550.c: Improve comment

This commit is contained in:
Joel Sherrill
2013-07-09 11:15:57 -05:00
parent 155ea78d9f
commit 48a22edb4a

View File

@@ -501,10 +501,13 @@ int ns16550_set_attributes(
/* /*
* Set the baud rate * Set the baud rate
*
* NOTE: When the Divisor Latch Access Bit (DLAB) is set to 1,
* the transmit buffer and interrupt enable registers
* turn into the LSB and MSB divisor latch registers.
*/ */
(*setReg)(pNS16550, NS16550_LINE_CONTROL, SP_LINE_DLAB); (*setReg)(pNS16550, NS16550_LINE_CONTROL, SP_LINE_DLAB);
/* XXX are these registers right? */
(*setReg)(pNS16550, NS16550_TRANSMIT_BUFFER, ulBaudDivisor&0xff); (*setReg)(pNS16550, NS16550_TRANSMIT_BUFFER, ulBaudDivisor&0xff);
(*setReg)(pNS16550, NS16550_INTERRUPT_ENABLE, (ulBaudDivisor>>8)&0xff); (*setReg)(pNS16550, NS16550_INTERRUPT_ENABLE, (ulBaudDivisor>>8)&0xff);