source: svn/newcon3bcm2_21bu/nexus/build/tools/jumptable/gen_fwd_apis.pl

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 3.4 KB
Line 
1#!/usr/bin/perl
2#############################################################################
3#    (c)2010 Broadcom Corporation
4#
5# This program is the proprietary software of Broadcom Corporation and/or its licensors,
6# and may only be used, duplicated, modified or distributed pursuant to the terms and
7# conditions of a separate, written license agreement executed between you and Broadcom
8# (an "Authorized License").  Except as set forth in an Authorized License, Broadcom grants
9# no license (express or implied), right to use, or waiver of any kind with respect to the
10# Software, and Broadcom expressly reserves all rights in and to the Software and all
11# intellectual property rights therein.  IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU
12# HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY
13# NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE.
14#
15# Except as expressly set forth in the Authorized License,
16#
17# 1.     This program, including its structure, sequence and organization, constitutes the valuable trade
18# secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof,
19# and to use this information only in connection with your use of Broadcom integrated circuit products.
20#
21# 2.     TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
22# AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR
23# WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO
24# THE SOFTWARE.  BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES
25# OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE,
26# LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION
27# OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF
28# USE OR PERFORMANCE OF THE SOFTWARE.
29#
30# 3.     TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS
31# LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR
32# EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR
33# USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF
34# THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT
35# ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE
36# LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF
37# ANY LIMITED REMEDY.
38#
39# $brcm_Workfile: gen_fwd_apis.pl $
40# $brcm_Revision: 1 $
41# $brcm_Date: 8/12/10 1:48p $
42#
43# Module Description: This script outputs a list of the required forward APIs
44#
45# Revision History:
46#
47# $brcm_Log: /nexus/build/tools/jumptable/gen_fwd_apis.pl $
48#
49# 1   8/12/10 1:48p ttrammel
50# SW7420-943: Merge NFE to main branch.
51#
52#
53#############################################################################
54my $i;
55my $module;
56
57if ( $#ARGV < 2 ) 
58{
59   die "usage: gen_fwd_apis.pl <apis text filename> <module name 1> ... <module name n>";
60}
61
62open(OUTFILE, ">@ARGV[0]") or die "Unable to open output file @ARGV[0]";
63
64print OUTFILE "#####################################################\n";
65print OUTFILE "# This file is automatically generated.  Do not edit.\n";
66print OUTFILE "#####################################################\n";
67
68for ($i=1;$i<=$#ARGV;$i++) {
69    $module = lc(@ARGV[$i]);
70        print OUTFILE "nexus_driver_$module\_open\n";
71        print OUTFILE "nexus_driver_$module\_ioctl\n";
72        print OUTFILE "nexus_driver_$module\_close\n";
73}
74
75close OUTFILE;
76
Note: See TracBrowser for help on using the repository browser.