bootprops.h revision dedec472759b1a1a25044d504201ef59ccbffb56
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _BOOTPROPS_H
#define _BOOTPROPS_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Boot properties related to netboot:
*/
#define BP_HOST_IP "host-ip"
#define BP_SUBNET_MASK "subnet-mask"
#define BP_ROUTER_IP "router-ip"
#define BP_BOOT_MAC "boot-mac"
#define BP_SERVER_IP "server-ip"
#define BP_SERVER_NAME "server-name"
#define BP_SERVER_PATH "server-path"
#define BP_SERVER_ROOTOPTS "server-rootopts"
#define BP_BOOTP_RESPONSE "bootp-response"
/*
* Boot properties related to iscsiboot:
*/
#define BP_NETWORK_INTERFACE "network-interface"
#define BP_ISCSI_TARGET_NAME "iscsi-target-name"
#define BP_ISCSI_TARGET_IP "iscsi-target-ip"
#define BP_ISCSI_INITIATOR_ID "iscsi-initiator-id"
#define BP_ISCSI_PORT "iscsi-port"
#define BP_ISCSI_TPGT "iscsi-tpgt"
#define BP_ISCSI_LUN "iscsi-lun"
#define BP_ISCSI_PAR "iscsi-partition"
#define BP_ISCSI_NETWORK_BOOTPATH "iscsi-network-bootpath"
#define BP_ISCSI_DISK "/iscsi-hba/disk"
#define BP_BOOTPATH "bootpath"
#define BP_CHAP_USER "chap-user"
#define BP_CHAP_PASSWORD "chap-password"
#define BP_LOCAL_MAC_ADDRESS "local-mac-address"
/*
* kifconf prototypes
*/
int
int
int
/*
* Boot properties related to iscsi boot:
*/
#define IB_BOOT_MACLEN 6
#define IB_IP_BUFLEN 16
/*
* iSCSI boot initiator's properties
*/
typedef struct _ib_ini_prop {
/*
* iSCSI boot nic's properties
*/
typedef struct _ib_nic_prop {
union {
} nic_ip_u;
union {
} nic_gw_u;
union {
} nic_dhcp_u;
int sin_family;
/*
* iSCSI boot target's properties
*/
typedef struct _ib_tgt_prop {
union {
}tgt_ip_u;
int sin_family;
int lun_online;
/*
* iSCSI boot properties
*/
typedef struct _ib_boot_prop {
void
ld_ib_prop();
void
void
get_iscsi_bootpath_vhci(char *bootpath);
void
get_iscsi_bootpath_phy(char *bootpath);
#ifdef __cplusplus
}
#endif
#endif /* _BOOTPROPS_H */