All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Bachman Kharazmi <bahkha@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] adding PCI support to 16550A.c
Date: Mon, 10 Sep 2007 20:24:36 +0200	[thread overview]
Message-ID: <46E58BE4.9090109@domain.hid> (raw)
In-Reply-To: <1ce16a2c0709100614u3f23fce9yd2be767406fa536a@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 831 bytes --]

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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2007-09-10 18:24 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-10 13:14 [Xenomai-help] adding PCI support to 16550A.c Bachman Kharazmi
2007-09-10 18:24 ` Jan Kiszka [this message]
2007-09-10 18:42   ` Bachman Kharazmi
2007-09-10 18:51     ` Jan Kiszka
2007-09-11 15:37       ` Bachman Kharazmi
2007-09-11 19:54         ` Jan Kiszka
2007-09-12 14:02           ` Bachman Kharazmi
2007-09-12 16:22             ` Bachman Kharazmi
2007-09-12 16:33               ` Gilles Chanteperdrix
2007-09-12 16:43                 ` Gilles Chanteperdrix
2007-09-12 19:30                   ` Bachman Kharazmi
2007-09-12 22:50                     ` Gilles Chanteperdrix
2007-09-12 16:32             ` Gilles Chanteperdrix
2007-09-12 19:17               ` Bachman Kharazmi
2007-09-12 23:25             ` Jan Kiszka
2007-09-13  6:14               ` Jan Kiszka
2007-09-13  9:38                 ` Bachman Kharazmi
2007-09-13  9:45                   ` Gilles Chanteperdrix
2007-09-13  9:51                     ` Bachman Kharazmi
2007-09-13  9:56                       ` Gilles Chanteperdrix
     [not found]                         ` <1ce16a2c0709130307k5e1955d4na694e90503084d0d@domain.hid>
2007-09-13 12:18                           ` Gilles Chanteperdrix
2007-09-13 12:41                             ` Bachman Kharazmi
2007-09-13 12:48                               ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2007-09-10 13:14 Bachman Kharazmi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46E58BE4.9090109@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=bahkha@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.