Bachman Kharazmi wrote:
> I've tried to make the pci serial controller visable to the 16550
> driver by adding:
> ## FROM 16550A.c
> static int rt_16550_interrupt(rtdm_irq_t * irq_context)
> {
>       struct rt_16550_context *ctx;
>       unsigned long base;
>       int mode;
>       int iir;
>       uint64_t timestamp = rtdm_clock_read();
>       int rbytes = 0;
>       int events = 0;
>       int modem;
>       int ret = RTDM_IRQ_NONE;
> // TEST
> struct pci_dev *pdev = NULL;  // from
> http://bachman.tor.lindesign.se/tmp/driver/sunix/snx_golden.c
> pdev = pci_get_device(0, 0, pdev); // from
                       ^^^^^^
You need to provide the fitting vendor and device ID here. Then you have
to call pci_device_enable on that pdev - if it's not NULL (ie. not
found). That should tell us if it's already enough to enable the device.

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to