Re: How to access Serial port's Line Control Register



Hi Walter:

If you can't find an ioctl call to use with the serial driver fo your
), then you'll have to write the LCR register directly. Check the
memory map for your board in the board's header file, the write to the
register directly. The concept of memory vs. io writes is not present
on a PowerPC - all devices and memory can be written to directly, so
sysOutBute or just *(unsigned char))UART_BASE+LCR_OFFSET |= 0x40;
should do it.

Good luck,
lc
walterwang@xxxxxxxxx wrote:
Hi ,

I am trying to figure out a way to access the Line Control Register
(LCR) of COM1 on a powerpc MCP750 system via vxworks. There does not
seem to be a sysOutbyte function or equivalent to access I/O address
directly. Nor does the function ioctl seem to have this functionality.
I would like to set the break enable (set 6th bit) of the serial port.
This would be the equivalent of SetCommBreak() for the windows PC. Any
one have any ideas or can point me in the right direction? Thanks
alot.

Walter

.



Relevant Pages

  • Linux-2.6.12 memory mapping broken
    ... To the memory expert that made the massive changes to mm/memory.c: ... Memory allocation is 18656 bytes ... +void pgd_clear_bad ...
    (Linux-Kernel)
  • Re: communication between user mode and kernel mode
    ... You have the application send down the chunk of memory on an IOCTL ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ...
    (microsoft.public.development.device.drivers)
  • [PATCH -mm 4/5] Hibernation: Correct definitions of some ioctls (rev. 2)
    ... new ioctl numbers for these ioctls and mark the existing ones as deprecated. ... SNAPSHOT_FREE - free memory allocated for the snapshot image ... partition, or a swap file as storage space (if a swap file is used, the resume ... it MAY mount a file system that was not ...
    (Linux-Kernel)
  • [PATCH 04/37] Hibernation: Correct definitions of some ioctls (rev. 2)
    ... Three ioctl numbers belonging to the hibernation userland interface, ... SNAPSHOT_FREE - free memory allocated for the snapshot image ... partition, or a swap file as storage space (if a swap file is used, the resume ... it MAY mount a file system that was not ...
    (Linux-Kernel)
  • Re: Problem with tcgetattr
    ... You are intercepting the ioctl or else replacing the ... These are the methods of the driver object. ... it looks like the serial driver to me. ... * is not handled by the tty layer or the low-level tty driver. ...
    (comp.os.linux.development.system)