Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#	$NetBSD: genassym.cf,v 1.1 2011/02/20 08:02:46 matt Exp $
#
#-
# Copyright (c) 2010 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
# by Matt Thomas of 3am Software Foundry.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#+

include <sys/types.h>
include <dev/arcbios/arcbios.h>

define	SPB_FirmwareVector	offsetof(struct arcbios_spb, FirmwareVector)

define	AFV_Load		offsetof(struct arcbios_fv, Load)
define	AFV_Invoke		offsetof(struct arcbios_fv, Invoke)
define	AFV_Execute		offsetof(struct arcbios_fv, Execute)
define	AFV_Halt		offsetof(struct arcbios_fv, Halt)
define	AFV_PowerDown		offsetof(struct arcbios_fv, PowerDown)
define	AFV_Restart		offsetof(struct arcbios_fv, Restart)
define	AFV_Reboot		offsetof(struct arcbios_fv, Reboot)
define	AFV_EnterInteractiveMode offsetof(struct arcbios_fv, EnterInteractiveMode)
define	AFV_ReturnFromMain	offsetof(struct arcbios_fv, ReturnFromMain)
define	AFV_GetPeer		offsetof(struct arcbios_fv, GetPeer)
define	AFV_GetChild		offsetof(struct arcbios_fv, GetChild)
define	AFV_GetParent		offsetof(struct arcbios_fv, GetParent)
define	AFV_GetConfigurationData offsetof(struct arcbios_fv, GetConfigurationData)
define	AFV_AddChild		offsetof(struct arcbios_fv, AddChild)
define	AFV_DeleteComponent	offsetof(struct arcbios_fv, DeleteComponent)
define	AFV_GetComponent	offsetof(struct arcbios_fv, GetComponent)
define	AFV_SaveConfiguration	offsetof(struct arcbios_fv, SaveConfiguration)
define	AFV_GetSystemId		offsetof(struct arcbios_fv, GetSystemId)
define	AFV_GetMemoryDescriptor	offsetof(struct arcbios_fv, GetMemoryDescriptor)
define	AFV_Signal		offsetof(struct arcbios_fv, Signal)
define	AFV_GetTime		offsetof(struct arcbios_fv, GetTime)
define	AFV_GetRelativeTime	offsetof(struct arcbios_fv, GetRelativeTime)
define	AFV_GetDirectoryEntry	offsetof(struct arcbios_fv, GetDirectoryEntry)
define	AFV_Open		offsetof(struct arcbios_fv, Open)
define	AFV_Close		offsetof(struct arcbios_fv, Close)
define	AFV_Read		offsetof(struct arcbios_fv, Read)
define	AFV_GetReadStatus	offsetof(struct arcbios_fv, GetReadStatus)
define	AFV_Write		offsetof(struct arcbios_fv, Write)
define	AFV_Seek		offsetof(struct arcbios_fv, Seek)
define	AFV_Mount		offsetof(struct arcbios_fv, Mount)
define	AFV_GetEnvironmentVariable offsetof(struct arcbios_fv, GetEnvironmentVariable)
define	AFV_SetEnvironmentVariable offsetof(struct arcbios_fv, SetEnvironmentVariable)
define	AFV_GetFileInformation	offsetof(struct arcbios_fv, GetFileInformation)
define	AFV_SetFileInformation	offsetof(struct arcbios_fv, SetFileInformation)
define	AFV_FlushAllCaches	offsetof(struct arcbios_fv, FlushAllCaches)
define	AFV_TestUnicode		offsetof(struct arcbios_fv, TestUnicode)
define	AFV_GetDisplayStatus	offsetof(struct arcbios_fv, GetDisplayStatus)