Date: Thu, 12 Jun 2003 20:51:18 +0800 From: "ouyang kai" <oykai@msn.com> To: freebsd-hackers@freebsd.org Subject: how can I hack my com interrupt? Message-ID: <BAY4-F32r66xmWbjLZU0004562e@hotmail.com>
next in thread | raw e-mail | index | archive | help
Hi, guys, I want to hack my com interface to specail purpose. I want to use the Modem Status Register. When the high 4 bits change, it could spring an interrupt. So, I set the Intertupt Enable Register(in sioattach fuction) to the interrupt, which support changing in the state of the modem input pins(IER_EMSC). I set the MSR successfully. But when the MSR state change, the siointr print anything(I add a printf as the first line of the function). I found there are 4 level interrupt(IIR). I want to set the IIR 4 level to support Modem status. But I couldn't set the Interrupt Identification Register, why? the code of set IIR is in the sioattach function: sio_setreg(com, com_iir, IIR_MLSC); I found the com_iir content is not changed. How can I do that? My OS is FreeBSD4.8-Release. Thanks a lot! Best Regards Ouyang Kai _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY4-F32r66xmWbjLZU0004562e>