pcs
struct pcs *p;
struct pcs *pcsp, *primary_pcsp;
struct pcs *pcsp = LOCATE_PCS(hwrpb, cpu_id);
struct pcs *pcsp = LOCATE_PCS(hwrpb, cpu_id);
struct pcs *pcsp;
struct pcs *pcsp;
struct pcs *pcsp;
struct pcs *p;
struct pcs *p;
struct pcs *p;
struct pcs *p;
#define LOCATE_PCS(h,cpunumber) ((struct pcs *) \
struct pcs *p;
bus_space_handle_t pcs = sc->sc_h1;
return bus_space_read_4(t, pcs, reg);
bus_space_handle_t pcs = sc->sc_h1;
bus_space_write_4(t, pcs, GEM_MII_CONFIG, 0);
bus_space_write_4(t, pcs, reg, val);
gem_bitwait(sc, pcs, GEM_MII_CONTROL, GEM_MII_CONTROL_RESET, 0);
bus_space_write_4(t, pcs, GEM_MII_SLINK_CONTROL,
bus_space_write_4(t, pcs, GEM_MII_CONFIG,
bus_space_tag_t memt = scr->pcs.hdl->ph_memt;
bus_space_handle_t memh = scr->pcs.hdl->ph_memh;
int ncols = scr->pcs.type->ncols;
if (scr->pcs.active) {
if (dstrow == 0 && (srcrow + nrows == scr->pcs.type->nrows)) {
int cursoron = scr->pcs.cursoron;
pcdisplay_cursor(&scr->pcs, 0,
scr->pcs.vc_crow, scr->pcs.vc_ccol);
if ((scr->pcs.dispoffset + srcrow * ncols * 2)
scr->pcs.dispoffset += srcrow * ncols * 2;
scr->pcs.dispoffset + srcoff * 2,
scr->vga_rollover = scr->pcs.dispoffset;
scr->pcs.dispoffset = scr->mindispoffset;
scr->pcs.visibleoffset = scr->pcs.dispoffset;
scr->pcs.dispoffset >> 9);
scr->pcs.dispoffset >> 1);
pcdisplay_cursor(&scr->pcs, 1,
scr->pcs.vc_crow, scr->pcs.vc_ccol);
scr->pcs.dispoffset + srcoff * 2,
memh, scr->pcs.dispoffset + dstoff * 2,
bcopy(&scr->pcs.mem[srcoff], &scr->pcs.mem[dstoff],
KASSERT(VGA_SCREEN_CANTWOFONTS(scr->pcs.type));
if (scr->pcs.active && scr->pcs.visibleoffset != scr->pcs.dispoffset)
const struct wsscreen_descr *type = scr->pcs.type;
scr->pcs.hdl = (struct pcdisplay_handle *)&vc->hdl;
scr->pcs.type = type;
scr->pcs.active = 0;
scr->pcs.dispoffset = vga_6845_read(&vc->hdl, startadrh) << 9;
scr->pcs.dispoffset |= vga_6845_read(&vc->hdl, startadrl) << 1;
if (scr->pcs.dispoffset < scr->mindispoffset ||
scr->pcs.dispoffset > scr->maxdispoffset)
scr->pcs.dispoffset = scr->mindispoffset;
scr->pcs.dispoffset = scr->mindispoffset;
scr->pcs.visibleoffset = scr->pcs.dispoffset;
scr->pcs.vc_crow = cpos / type->ncols;
scr->pcs.vc_ccol = cpos % type->ncols;
pcdisplay_cursor_init(&scr->pcs, existing);
scr->pcs.mem = NULL;
vga_console_screen.pcs.active = 1;
vga_console_screen.pcs.vc_ccol,
vga_console_screen.pcs.vc_crow,
scr->pcs.mem = mallocarray(scr->pcs.type->ncols,
scr->pcs.type->nrows * 2, M_DEVBUF, M_WAITOK);
scr->pcs.active = 1;
scr->pcs.mem = mallocarray(type->ncols,
pcdisplay_eraserows(&scr->pcs, 0, type->nrows, *defattrp);
*curxp = scr->pcs.vc_ccol;
*curyp = scr->pcs.vc_crow;
free(LIST_FIRST(&vc->screens)->pcs.mem, M_DEVBUF, 0);
free(vs->pcs.mem, M_DEVBUF, 0);
type = scr->pcs.type;
if (!oldscr->pcs.active)
if (oldscr->pcs.type != vc->currenttype)
if (scr->pcs.active)
const struct wsscreen_descr *oldtype = oldscr->pcs.type;
oldscr->pcs.active = 0;
oldscr->pcs.dispoffset, oldscr->pcs.mem,
scr->pcs.visibleoffset = scr->pcs.dispoffset = scr->mindispoffset;
if (!oldscr || (scr->pcs.dispoffset != oldscr->pcs.dispoffset)) {
vga_6845_write(vh, startadrh, scr->pcs.dispoffset >> 9);
vga_6845_write(vh, startadrl, scr->pcs.dispoffset >> 1);
scr->pcs.dispoffset, scr->pcs.mem,
scr->pcs.active = 1;
pcdisplay_cursor_reset(&scr->pcs);
pcdisplay_cursor(&scr->pcs, scr->pcs.cursoron,
scr->pcs.vc_crow, scr->pcs.vc_ccol);
if (scr->pcs.visibleoffset == scr->pcs.dispoffset)
scr->pcs.visibleoffset = scr->pcs.dispoffset; /* reset */
int margin = scr->pcs.type->ncols * 2;
vga_scr_end = (scr->pcs.dispoffset + scr->pcs.type->ncols *
scr->pcs.type->nrows * 2);
we = scr->vga_rollover + scr->pcs.type->ncols * 2;
p = (scr->pcs.visibleoffset - ul + we) % we + lines *
(scr->pcs.type->ncols * 2);
st = (scr->pcs.dispoffset - ul + we) % we;
scr->pcs.visibleoffset = (p + ul) % we;
vga_6845_write(vh, startadrh, scr->pcs.visibleoffset >> 9);
vga_6845_write(vh, startadrl, scr->pcs.visibleoffset >> 1);
struct pcdisplayscreen pcs;
dc->pcs.hdl = ph;
dc->pcs.type = &pcdisplay_scr;
dc->pcs.active = 1;
dc->pcs.mem = NULL;
dc->pcs.dispoffset = 0;
dc->pcs.visibleoffset = 0;
dc->pcs.vc_crow = cpos / pcdisplay_scr.ncols;
dc->pcs.vc_ccol = cpos % pcdisplay_scr.ncols;
pcdisplay_cursor_init(&dc->pcs, 1);
pcdisplay_console_dc.pcs.vc_ccol,
pcdisplay_console_dc.pcs.vc_crow,
struct pcdisplayscreen pcs;
bus_space_handle_t pcs = sc->sc_memh;
return bus_space_read_4(t, pcs, reg);
bus_space_handle_t pcs = sc->sc_memh;
bus_space_write_4(t, pcs, CAS_MII_CONFIG, 0);
bus_space_write_4(t, pcs, reg, val);
cas_bitwait(sc, pcs, CAS_MII_CONTROL, CAS_MII_CONTROL_RESET, 0);
bus_space_write_4(t, pcs, CAS_MII_CONFIG,
uint32_t pcs;
pcs = E1000_READ_REG(hw, PCS_LSTAT);
if ((pcs & E1000_PCS_LSTS_LINK_OK) && (pcs & E1000_PCS_LSTS_SYNK_OK)) {
if (pcs & E1000_PCS_LSTS_SPEED_1000) {
} else if (pcs & E1000_PCS_LSTS_SPEED_100) {
if (pcs & E1000_PCS_LSTS_DUPLEX_FULL) {
if (scr != NULL && scr->pcs.active && scr->pcs.mem != NULL)
scr->pcs.dispoffset, scr->pcs.mem,
scr->pcs.type->ncols * scr->pcs.type->nrows);
if (scr != NULL && scr->pcs.active && scr->pcs.mem != NULL)
scr->pcs.dispoffset, scr->pcs.mem,
scr->pcs.type->ncols * scr->pcs.type->nrows);
size_t pcs, rcs, ecs, ws, memsize;
pcs = YREAD4(sc, YDS_PLAY_CTRLSIZE) * sizeof(u_int32_t);
DPRINTF(("play control size : %d\n", (unsigned int)pcs));
if (pcs != sizeof(struct play_slot_ctrl_bank)) {
sc->sc_dev.dv_xname, (unsigned int)pcs,
memsize = N_PLAY_SLOTS*N_PLAY_SLOT_CTRL_BANK*pcs +
cb += pcs;
cb += pcs;