pxe.h (58999) | pxe.h (59087) |
---|---|
1/* 2 * Copyright (c) 2000 Alfred Perlstein <alfred@freebsd.org> 3 * All rights reserved. 4 * Copyright (c) 2000 Paul Saab <ps@freebsd.org> 5 * All rights reserved. 6 * Copyright (c) 2000 John Baldwin <jhb@freebsd.org> 7 * All rights reserved. 8 * --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * | 1/* 2 * Copyright (c) 2000 Alfred Perlstein <alfred@freebsd.org> 3 * All rights reserved. 4 * Copyright (c) 2000 Paul Saab <ps@freebsd.org> 5 * All rights reserved. 6 * Copyright (c) 2000 John Baldwin <jhb@freebsd.org> 7 * All rights reserved. 8 * --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * |
30 * $FreeBSD: head/sys/boot/i386/libi386/pxe.h 58999 2000-04-04 07:28:54Z ps $ | 30 * $FreeBSD: head/sys/boot/i386/libi386/pxe.h 59087 2000-04-08 01:22:14Z ps $ |
31 */ 32 33/* 34 * The typedefs and structures declared in this file 35 * clearly violate style(9), the reason for this is to conform to the 36 * typedefs/structure-names used in the Intel literature to avoid confusion. 37 * 38 * It's for your own good. :) --- 17 unchanged lines hidden (view full) --- 56#define IP_ARGS(ip) \ 57 (int)(ip >> 24) & 0xff, (int)(ip >> 16) & 0xff, \ 58 (int)(ip >> 8) & 0xff, (int)ip & 0xff 59 60#define MAC_STR "%02x:%02x:%02x:%02x:%02x:%02x" 61#define MAC_ARGS(mac) \ 62 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5] 63 | 31 */ 32 33/* 34 * The typedefs and structures declared in this file 35 * clearly violate style(9), the reason for this is to conform to the 36 * typedefs/structure-names used in the Intel literature to avoid confusion. 37 * 38 * It's for your own good. :) --- 17 unchanged lines hidden (view full) --- 56#define IP_ARGS(ip) \ 57 (int)(ip >> 24) & 0xff, (int)(ip >> 16) & 0xff, \ 58 (int)(ip >> 8) & 0xff, (int)ip & 0xff 59 60#define MAC_STR "%02x:%02x:%02x:%02x:%02x:%02x" 61#define MAC_ARGS(mac) \ 62 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5] 63 |
64#define PXENFSROOTPATH "/pxeroot" 65 |
|
64typedef struct { 65 uint16_t offset; 66 uint16_t segment; 67} SEGOFF16_t; 68 69typedef struct { 70 uint16_t Seg_Addr; 71 uint32_t Phy_Addr; --- 368 unchanged lines hidden (view full) --- 440 IP4_t ip; /* dest ip addr */ 441 IP4_t gw; /* ip gateway */ 442 UDP_PORT_t src_port; /* source udp port */ 443 UDP_PORT_t dst_port; /* destination udp port */ 444 uint16_t buffer_size; /* Size of the packet buffer */ 445 SEGOFF16_t buffer; /* SEG:OFF to the packet buffer */ 446} PACKED t_PXENV_UDP_WRITE; 447 | 66typedef struct { 67 uint16_t offset; 68 uint16_t segment; 69} SEGOFF16_t; 70 71typedef struct { 72 uint16_t Seg_Addr; 73 uint32_t Phy_Addr; --- 368 unchanged lines hidden (view full) --- 442 IP4_t ip; /* dest ip addr */ 443 IP4_t gw; /* ip gateway */ 444 UDP_PORT_t src_port; /* source udp port */ 445 UDP_PORT_t dst_port; /* destination udp port */ 446 uint16_t buffer_size; /* Size of the packet buffer */ 447 SEGOFF16_t buffer; /* SEG:OFF to the packet buffer */ 448} PACKED t_PXENV_UDP_WRITE; 449 |
450#define PXENV_UDP_WRITE 0x0033 451typedef struct { 452 PXENV_STATUS_t status; 453 IP4_t ip; /* dest ip addr */ 454 IP4_t gw; /* ip gateway */ 455 UDP_PORT_t src_port; /* source udp port */ 456 UDP_PORT_t dst_port; /* destination udp port */ 457 uint16_t buffer_size; /* Size of the packet buffer */ 458 SEGOFF16_t buffer; /* SEG:OFF to the packet buffer */ 459} PACKED t_PXENV_UDP_WRITE; 460 |
|
448#define PXENV_UNLOAD_STACK 0x0070 449typedef struct { 450 PXENV_STATUS_t Status; 451 uint8_t reserved[10]; 452} PACKED t_PXENV_UNLOAD_STACK; 453 454 455#define PXENV_GET_CACHED_INFO 0x0071 --- 63 unchanged lines hidden --- | 461#define PXENV_UNLOAD_STACK 0x0070 462typedef struct { 463 PXENV_STATUS_t Status; 464 uint8_t reserved[10]; 465} PACKED t_PXENV_UNLOAD_STACK; 466 467 468#define PXENV_GET_CACHED_INFO 0x0071 --- 63 unchanged lines hidden --- |