CVS commit: src/sys/arch/x86/pci

"Andrius Varanavicius" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	andvar
Date:		Tue Mar 31 19:47:47 UTC 2026

Modified Files:
	src/sys/arch/x86/pci: rdcpcib.c

Log Message:
rdcpcib(4): fix rdcpcib attach/detach handling for function 0 and function 1.

Only function 0 exposes the indirect access registers and the watchdog timer.
Function 1 has a separate register set and does not use these registers.

This resolves the autoconfiguration error seen in boot dmesg:
"rdcpcib1: autoconfiguration error: couldn't map indirect registers"

Attach now maps the indirect access registers and configures the watchdog only
for function 0, and detach only releases resources that were initialized.

reviewed by riastradh@, thanks!


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/x86/pci/rdcpcib.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.