From: Rich.Liu@ite.com.tw
To: linux-kernel@vger.kernel.org
Subject: [newbie] some problem in my new hardware (serial)
Date: Tue, 22 May 2001 18:32:24 +0800 [thread overview]
Message-ID: <412C066DD818D3118D4300805FD4667902090B88@ITEMAIL> (raw)
I went to port a new hardware into linux kernel.
this is a generic SuperIO chip . have 2serial port 1parallel
in serial.c 's struct
static struct pci_board pci_boards[] __devinitdata = {
add my code
{ PCI_VENDOR_ID_ITE, PCI_DEVICE_ID_ITE_8872,
PCI_ANY_ID, PCI_ANY_ID,
SPCI_FL_BASE1| SPCI_FL_BASE_TABLE, 2, 115200,
0, 0, pci_ite8872_fn, 0 },
pci_ite8872_fn don't have code ... it's a null function
after this , I load my kernel modules
this function will clean hardware's Interrupt Request Register.
void ite8872_requestirq(int irq,void *dev_id,struct pt_regs *regs){
u8 itmp;
itmp = inb(ITE8872_INTC+2);
outb(itmp,ITE8872_INTC); // Clean Interrupt
}
when I configure hardware , i reload serial.o , I can get those message
May 22 18:21:43 sddlinux kernel: PCI: Found IRQ 10 for device 00:0b.0
May 22 18:21:43 sddlinux kernel: Setup PCI/PNP port: port b400, irq 10, type
0
May 22 18:21:43 sddlinux kernel: Testing ttyS4 (0xb400, 0x0000)...
May 22 18:21:43 sddlinux kernel: ttyS04 at port 0xb400 (irq = 10) is a
16550A
May 22 18:21:43 sddlinux kernel: Setup PCI/PNP port: port b000, irq 10, type
0
May 22 18:21:43 sddlinux kernel: Testing ttyS5 (0xb000, 0x0000)...
May 22 18:21:43 sddlinux kernel: ttyS05 at port 0xb000 (irq = 10) is a
16550A
I think this is would setup my hardware correct ....
but if I use minicom to access this comport . will give me a message
"starting up ttys5 (irq 10)...rs_open ttys0 success"
and repeat this message
"rs_interrupt_single(10)... status = 60 ...IIR = c1 ...end.
many times, and kernel hangs .
I must use hardware restart to reboot my computer .
I have no idea to programming next step , could anyone can help me to
program it ?
--
Integrated Technology Express, INC.
Rich Liu
E-mail : rich.liu@ite.com.tw
Tel : +886 (3) 579-8658 Ext : 28221
reply other threads:[~2001-05-22 10:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=412C066DD818D3118D4300805FD4667902090B88@ITEMAIL \
--to=rich.liu@ite.com.tw \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®