summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/meteor.c5
-rw-r--r--sys/pci/pcic_p.c8
-rw-r--r--sys/pci/xrpu.c7
3 files changed, 11 insertions, 9 deletions
diff --git a/sys/pci/meteor.c b/sys/pci/meteor.c
index 65824ca..c65860b 100644
--- a/sys/pci/meteor.c
+++ b/sys/pci/meteor.c
@@ -963,7 +963,8 @@ meteor_init ( meteor_reg_t *mtr )
SAA7196_REG(mtr, SAA7196_STDC) & ~0x02);
SAA7196_READ(mtr);
printf("meteor%d: <Philips SAA 7196> rev 0x%x\n",
- METEOR_NUM(mtr), (mtr->base->i2c_read&0xff000000L)>>28);
+ METEOR_NUM(mtr),
+ (unsigned)((mtr->base->i2c_read & 0xff000000L) >> 28));
} else {
i2c_print_err = 1;
printf("meteor%d: <Philips SAA 7196 NOT FOUND>\n",
@@ -1042,7 +1043,7 @@ met_attach(pcici_t tag, int unit)
pci_conf_write(tag, PCI_LATENCY_TIMER, latency<<8);
}
if(bootverbose) {
- printf(" %d.\n", latency);
+ printf(" %lu.\n", latency);
}
meteor_init(mtr); /* set up saa7116, saa7196, and rgb module */
diff --git a/sys/pci/pcic_p.c b/sys/pci/pcic_p.c
index 61162bf..4c667f2 100644
--- a/sys/pci/pcic_p.c
+++ b/sys/pci/pcic_p.c
@@ -26,7 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id$
+ * $Id: pcic_p.c,v 1.5 1998/02/07 20:41:20 nate Exp $
*/
#include "pci.h"
@@ -108,7 +108,7 @@ pcic_pci_attach(pcici_t config_id, int unit)
for (j = 0; j < 0x98; j += 16) {
printf("%02x: ", j);
for (i = 0; i < 16; i += 4)
- printf(" %08x", pci_conf_read(config_id, i+j));
+ printf(" %08lx", pci_conf_read(config_id, i+j));
printf("\n");
}
p = (u_char *)pmap_mapdev(pci_conf_read(config_id, 0x10),
@@ -117,10 +117,10 @@ pcic_pci_attach(pcici_t config_id, int unit)
printf("Cardbus Socket registers:\n");
printf("00: ");
for (i = 0; i < 4; i += 1)
- printf(" %08x:", pl[i]);
+ printf(" %08lx:", pl[i]);
printf("\n10: ");
for (i = 4; i < 8; i += 1)
- printf(" %08x:", pl[i]);
+ printf(" %08lx:", pl[i]);
printf("\nExCa registers:\n");
for (i = 0; i < 0x40; i += 16)
printf("%02x: %16D\n", i, p + 0x800 + i, " ");
diff --git a/sys/pci/xrpu.c b/sys/pci/xrpu.c
index 4a78d60..b46a395 100644
--- a/sys/pci/xrpu.c
+++ b/sys/pci/xrpu.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id$
+ * $Id: xrpu.c,v 1.1 1998/05/30 18:28:11 phk Exp $
*
* A very simple device driver for PCI cards based on Xilinx 6200 series
* FPGA/RPU devices. Current Functionality is to allow you to open and
@@ -100,11 +100,12 @@ xrpu_attach (pcici_t tag, int unit)
pci_map_mem(tag, PCI_MAP_REG_START, &virbase, &physbase);
- printf("Mapped physbase %p to virbase %p\n", physbase, virbase);
+ printf("Mapped physbase %#lx to virbase %#lx\n",
+ (u_long)physbase, (u_long)virbase);
cdevsw_add(&cdev, &xrpudevsw, NULL);
devfs_add_devswf(&xrpudevsw, 0, DV_CHR, UID_ROOT, GID_WHEEL, 0600,
- "xrpu0", 0);
+ "xrpu0");
}
#endif /* DEVFS */
OpenPOWER on IntegriCloud