comconsole.c (cb1103025d020593fa0df06617f7bb722101976e) comconsole.c (388199e5bbac016b3d33b3c7a9e9250894dafc98)
1/*-
2 * Copyright (c) 1998 Michael Smith (msmith@freebsd.org)
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 249 unchanged lines hidden (view full) ---

258{
259#ifdef NO_PCI
260 return (CMD_ERROR);
261#else
262 char intbuf[64];
263 uint32_t port;
264
265 if (biospci_read_config(locator & 0xffff,
1/*-
2 * Copyright (c) 1998 Michael Smith (msmith@freebsd.org)
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 249 unchanged lines hidden (view full) ---

258{
259#ifdef NO_PCI
260 return (CMD_ERROR);
261#else
262 char intbuf[64];
263 uint32_t port;
264
265 if (biospci_read_config(locator & 0xffff,
266 (locator & 0xff0000) >> 16, 2, &port) == -1) {
266 (locator & 0xff0000) >> 16, BIOSPCI_32BITS, &port) == -1) {
267 printf("Cannot read bar at 0x%x\n", locator);
268 return (CMD_ERROR);
269 }
270
271 /*
272 * biospci_read_config() sets port == 0xffffffff if the pcidev
273 * isn't found on the bus. Check for 0xffffffff and return to not
274 * panic in BTX.

--- 111 unchanged lines hidden ---
267 printf("Cannot read bar at 0x%x\n", locator);
268 return (CMD_ERROR);
269 }
270
271 /*
272 * biospci_read_config() sets port == 0xffffffff if the pcidev
273 * isn't found on the bus. Check for 0xffffffff and return to not
274 * panic in BTX.

--- 111 unchanged lines hidden ---