diff options
| author | Peter Tribble <peter.tribble@gmail.com> | 2019-05-24 10:39:16 -0700 |
|---|---|---|
| committer | Joshua M. Clulow <josh@sysmgr.org> | 2019-05-24 10:39:16 -0700 |
| commit | 1f4c6dbc37f14382f7ff4575a74da056dbd34d66 (patch) | |
| tree | 45a6fc8ffc476fbad5df34b36be83eac7ac8be06 /usr/src/psm | |
| parent | 7811b028df2f34164be65174d666b570b73d32c3 (diff) | |
| download | illumos-joyent-1f4c6dbc37f14382f7ff4575a74da056dbd34d66.tar.gz | |
10864 Remove starcat support
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: John Levon <john.levon@joyent.com>
Approved by: Joshua M. Clulow <josh@sysmgr.org>
Diffstat (limited to 'usr/src/psm')
| -rw-r--r-- | usr/src/psm/promif/ieee1275/sun4u/Makefile.files | 3 | ||||
| -rw-r--r-- | usr/src/psm/promif/ieee1275/sun4u/prom_starcat.c | 219 | ||||
| -rw-r--r-- | usr/src/psm/stand/boot/sparcv9/sun4u/Makefile | 3 | ||||
| -rw-r--r-- | usr/src/psm/stand/bootblks/ufs/sparc/sun4u/Makefile | 1 |
4 files changed, 2 insertions, 224 deletions
diff --git a/usr/src/psm/promif/ieee1275/sun4u/Makefile.files b/usr/src/psm/promif/ieee1275/sun4u/Makefile.files index ff9ac4f72f..5fa8bbe84e 100644 --- a/usr/src/psm/promif/ieee1275/sun4u/Makefile.files +++ b/usr/src/psm/promif/ieee1275/sun4u/Makefile.files @@ -25,7 +25,7 @@ # # psm/promif/ieee1275/sun4u/Makefile.files # -# This Makefile defines all the promif file modules for the +# This Makefile defines all the promif file modules for the # directory psm/promif/ieee1275/sun4u. # @@ -53,7 +53,6 @@ CORE_OBJS += \ prom_serengeti.o \ prom_set_traptable.o \ prom_sparc.o \ - prom_starcat.o \ prom_sunfire.o \ prom_tlb.o \ prom_vercheck.o \ diff --git a/usr/src/psm/promif/ieee1275/sun4u/prom_starcat.c b/usr/src/psm/promif/ieee1275/sun4u/prom_starcat.c deleted file mode 100644 index bd77b7c8f3..0000000000 --- a/usr/src/psm/promif/ieee1275/sun4u/prom_starcat.c +++ /dev/null @@ -1,219 +0,0 @@ -/* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] - * - * CDDL HEADER END - */ -/* - * Copyright (c) 2000 by Sun Microsystems, Inc. - * All rights reserved. - */ - -#pragma ident "%Z%%M% %I% %E% SMI" - -#include <sys/promif.h> -#include <sys/promimpl.h> - -/* - * This file contains the implementations of all Starcat-specific promif - * routines. Refer to FWARC case 2000/420 for the definitions of the - * platform-specific interfaces provided by Starcat OBP. - */ - -static char *switch_tunnel_cmd = "SUNW,Starcat,switch-tunnel"; -static char *iosram_read_cmd = "SUNW,Starcat,iosram-read"; -static char *iosram_write_cmd = "SUNW,Starcat,iosram-write"; - -/* - * Given the portid of the IOB to which the tunnel should be moved and the type - * of move that should be performed, ask OBP to switch the IOSRAM tunnel from - * its current host IOB to a new location. If the move type is 0, OBP will - * coordinate the change with SMS and will copy data from the current location - * to the new location. If the move type is 1, OBP will simply mark the new - * location valid and start using it, without doing any data copying and without - * communicating with SMS. Return 0 on success, non-zero on failure. - */ -int -prom_starcat_switch_tunnel(uint_t portid, uint_t msgtype) -{ - static uint8_t warned = 0; - cell_t ci[6]; - int rv; - - /* - * Make sure we have the necessary support in OBP. - */ - if (prom_test(switch_tunnel_cmd) == 0) { - ci[0] = p1275_ptr2cell(switch_tunnel_cmd); /* name */ - } else { - if (!warned) { - warned = 1; - prom_printf( - "Warning: No prom support for switch-tunnel!\n"); - } - return (-1); - } - - /* - * Set up the arguments and call into OBP. - */ - ci[1] = (cell_t)2; /* #argument cells */ - ci[2] = (cell_t)1; /* #result cells */ - ci[3] = p1275_uint2cell(portid); - ci[4] = p1275_uint2cell(msgtype); - - promif_preprom(); - rv = p1275_cif_handler(&ci); - promif_postprom(); - - /* - * p1275_cif_handler will return 0 on success, non-zero on failure. If - * it fails, the return cell from OBP is meaningless, because the OBP - * client interface probably wasn't even invoked. OBP will return 0 on - * failure and non-zero on success for this interface. - */ - if (rv != 0) { - return (rv); - } else if (p1275_cell2int(ci[5]) == 0) { - return (-1); - } else { - return (0); - } -} - -/* - * Request that OBP read 'len' bytes, starting at 'offset' in the IOSRAM chunk - * associated with 'key', into the memory indicated by 'buf'. Although there is - * a driver that provides this functionality, there are certain cases where the - * OS requires access to IOSRAM before the driver is loaded. Return 0 on - * success, non-zero on failure. - */ -int -prom_starcat_iosram_read(uint32_t key, uint32_t offset, uint32_t len, - caddr_t buf) -{ - static uint8_t warned = 0; - cell_t ci[8]; - int rv; - - /* - * Make sure we have the necessary support in OBP. - */ - if (prom_test(iosram_read_cmd) == 0) { - ci[0] = p1275_ptr2cell(iosram_read_cmd); /* name */ - } else { - if (!warned) { - warned = 1; - prom_printf( - "Warning: No prom support for iosram-read!\n"); - } - return (-1); - } - - /* - * Set up the arguments and call into OBP. Note that the argument order - * needs to be reversed to accomodate OBP. The order must remain as it - * is in the function prototype to maintain intercompatibility with the - * IOSRAM driver's equivalent routine. - */ - ci[1] = (cell_t)4; /* #argument cells */ - ci[2] = (cell_t)1; /* #result cells */ - ci[3] = p1275_ptr2cell(buf); - ci[4] = p1275_uint2cell(len); - ci[5] = p1275_uint2cell(offset); - ci[6] = p1275_uint2cell(key); - - promif_preprom(); - rv = p1275_cif_handler(&ci); - promif_postprom(); - - /* - * p1275_cif_handler will return 0 on success, non-zero on failure. If - * it fails, the return cell from OBP is meaningless, because the OBP - * client interface probably wasn't even invoked. OBP will return 0 on - * success and non-zero on failure for this interface. - */ - if (rv != 0) { - return (rv); - } else if (p1275_cell2int(ci[7]) == 0) { - return (0); - } else { - return (-1); - } -} - -/* - * Request that OBP write 'len' bytes from the memory indicated by 'buf' into - * the IOSRAM chunk associated with 'key', starting at 'offset'. Although there - * is a driver that provides this functionality, there are certain cases where - * the OS requires access to IOSRAM before the driver is loaded. Return 0 on - * success, non-zero on failure. - */ -int -prom_starcat_iosram_write(uint32_t key, uint32_t offset, uint32_t len, - caddr_t buf) -{ - static uint8_t warned = 0; - cell_t ci[8]; - int rv; - - /* - * Make sure we have the necessary support in OBP. - */ - if (prom_test(iosram_write_cmd) == 0) { - ci[0] = p1275_ptr2cell(iosram_write_cmd); /* name */ - } else { - if (!warned) { - warned = 1; - prom_printf( - "Warning: No prom support for iosram-write!\n"); - } - return (-1); - } - - /* - * Set up the arguments and call into OBP. Note that the argument order - * needs to be reversed to accomodate OBP. The order must remain as it - * is in the function prototype to maintain intercompatibility with the - * IOSRAM driver's equivalent routine. - */ - ci[1] = (cell_t)4; /* #argument cells */ - ci[2] = (cell_t)1; /* #result cells */ - ci[3] = p1275_ptr2cell(buf); - ci[4] = p1275_uint2cell(len); - ci[5] = p1275_uint2cell(offset); - ci[6] = p1275_uint2cell(key); - - promif_preprom(); - rv = p1275_cif_handler(&ci); - promif_postprom(); - - /* - * p1275_cif_handler will return 0 on success, non-zero on failure. If - * it fails, the return cell from OBP is meaningless, because the OBP - * client interface probably wasn't even invoked. OBP will return 0 on - * success and non-zero on failure for this interface. - */ - if (rv != 0) { - return (rv); - } else if (p1275_cell2int(ci[7]) == 0) { - return (0); - } else { - return (-1); - } -} diff --git a/usr/src/psm/stand/boot/sparcv9/sun4u/Makefile b/usr/src/psm/stand/boot/sparcv9/sun4u/Makefile index cdd5a93b4b..fffd4a6789 100644 --- a/usr/src/psm/stand/boot/sparcv9/sun4u/Makefile +++ b/usr/src/psm/stand/boot/sparcv9/sun4u/Makefile @@ -49,7 +49,6 @@ PLATLINKS += SUNW,Sun-Fire-V240 PLATLINKS += SUNW,Sun-Fire-V250 PLATLINKS += SUNW,Sun-Fire-V440 PLATLINKS += SUNW,Sun-Fire-280R -PLATLINKS += SUNW,Sun-Fire-15000 PLATLINKS += SUNW,Sun-Fire-880 PLATLINKS += SUNW,Sun-Fire-480R PLATLINKS += SUNW,Sun-Fire-V890 @@ -86,7 +85,7 @@ FRC: .KEEP_STATE: -all: +all: install: all $(LINKED_DIRS) $(LINKED_LIB_DIRS) $(LINKED_LIB_FS_DIRS) diff --git a/usr/src/psm/stand/bootblks/ufs/sparc/sun4u/Makefile b/usr/src/psm/stand/bootblks/ufs/sparc/sun4u/Makefile index 7fb47eeffc..058b6367d0 100644 --- a/usr/src/psm/stand/bootblks/ufs/sparc/sun4u/Makefile +++ b/usr/src/psm/stand/bootblks/ufs/sparc/sun4u/Makefile @@ -50,7 +50,6 @@ PLATLINKS += SUNW,Sun-Fire-V240 PLATLINKS += SUNW,Sun-Fire-V250 PLATLINKS += SUNW,Sun-Fire-V440 PLATLINKS += SUNW,Sun-Fire-280R -PLATLINKS += SUNW,Sun-Fire-15000 PLATLINKS += SUNW,Sun-Fire-880 PLATLINKS += SUNW,Sun-Fire-480R PLATLINKS += SUNW,Sun-Fire-V890 |
