You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "szafonimateusz-mi (via GitHub)" <gi...@apache.org> on 2024/09/12 09:32:33 UTC
[PR] Add support for 16550 compatible PCI serial cards [nuttx]
szafonimateusz-mi opened a new pull request, #13393:
URL: https://github.com/apache/nuttx/pull/13393
## Summary
- drivers: prepare 16550 UART driver to support PCI
prepare 16550 UART driver to support PCI:
- **[breaking change]** change argument of `uart_ioctl()` from `struct file *filep` to `FAR struct u16550_s *priv`
Also fix moxart_16550.c build related to this change
- **[breaking change]** change argument of `uart_getreg()` and `uart_putreg()` from `uart_addrwidth_t base` to `FAR struct u16550_s *priv`
Also fix arch/x86/src/qemu/qemu_serial.c and arch/x86_64/src/intel64/intel64_serial.c related to this change
- **[breaking change]** change argument of `uart_dmachan()` from `uart_addrwidth_t base` to `FAR struct u16550_s *priv`
- move `struct u16550_s` to public header
- generalize UART_XXX_OFFSET so we can use it with any register increment
- make `u16550_bind()`, `u16550_interrupt()`, `u16550_interrupt()` public
- remove arch/or1k/src/common/or1k_uart.c and use common 16550 MIMO interfacve
- drivers: add UART 16550 compatible PCI device support
add support for UART 16550 compatible PCI device
- arch/intel64: add support for PCI serial
- boards/x86_64/qemu-intel64: add configs with PCI serial console
add configs with PCI serial console for qemu-intel64 so we can run NuttX on bare
metal Intel HW with serial port card
- drivers: fix gcc14 errors for PCI
Depends on https://github.com/apache/nuttx/pull/13391
## Impact
out of tree arch that use UART 16550 may need to update interfaces used according to these changes:
- change argument of uart_ioctl() from `struct file *filep` to `FAR struct u16550_s *priv`
look at moxart_16550.c modifed in this PR
- change argument of uart_getreg() and uart_putreg from `uart_addrwidth_t base` to `FAR struct u16550_s *priv`
look at arch/x86/src/qemu/qemu_serial.c and arch/x86_64/src/intel64/intel64_serial.c modifed in this PR
- change argument of uart_dmachan() from `uart_addrwidth_t base` to `FAR struct u16550_s *priv`
`uart_dmachan()` not used in upstream.
## Testing
TBD
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add support for 16550 compatible PCI serial cards [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #13393:
URL: https://github.com/apache/nuttx/pull/13393
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add support for 16550 compatible PCI serial cards [nuttx]
Posted by "ldube (via GitHub)" <gi...@apache.org>.
ldube commented on code in PR #13393:
URL: https://github.com/apache/nuttx/pull/13393#discussion_r1758992886
##########
drivers/pci/Kconfig:
##########
@@ -12,6 +12,14 @@ menuconfig PCI
if PCI
+config PCI_LATE_DRIVERS_REGISTER
+ bool
+ default n
+ ---help---
+ This option disable PCI drivers registratin from drivers_initialize().
Review Comment:
This option disables PCI driver registration in drivers_initialize()
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add support for 16550 compatible PCI serial cards [nuttx]
Posted by "raiden00pl (via GitHub)" <gi...@apache.org>.
raiden00pl commented on PR #13393:
URL: https://github.com/apache/nuttx/pull/13393#issuecomment-2345768842
@ldube FYI since it seems you are using a device with 16550 UART
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add support for 16550 compatible PCI serial cards [nuttx]
Posted by "ldube (via GitHub)" <gi...@apache.org>.
ldube commented on code in PR #13393:
URL: https://github.com/apache/nuttx/pull/13393#discussion_r1758992079
##########
drivers/pci/Kconfig:
##########
@@ -12,6 +12,14 @@ menuconfig PCI
if PCI
+config PCI_LATE_DRIVERS_REGISTER
+ bool
+ default n
+ ---help---
+ This option disable PCI drivers registratin from drivers_initialize().
Review Comment:
This option disables PCI driver registration in drivers_initialize()
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add support for 16550 compatible PCI serial cards [nuttx]
Posted by "szafonimateusz-mi (via GitHub)" <gi...@apache.org>.
szafonimateusz-mi commented on PR #13393:
URL: https://github.com/apache/nuttx/pull/13393#issuecomment-2348543315
tested on qemu and real HW, it's ready to review
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org