CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2024/10/24 12:52:59
Modified files: sys/dev/ic : psp.c pspvar.h sys/dev/pci : ccp_pci.c files.pci Added files: sys/dev/pci : psp_pci.c Log message: Attach psp(4) version 1. Some AMD CPUs come with an older platform security processor. It is detectet by PCI Id and has different register offsets. Move the dynamic register offsets into psp_softc. The PCI attach code is now in a separate psp_pci.c file and detects the version of the psp along with the ccp. The attach code is more verbose to display where problems might occur. Now the ccp_wait() has 2 seconds timeout, both for polling and interrupt. Also prevent a useless bus_space_read_4(). OK hshoexer@