"Fossies" - the Fresh Open Source Software Archive

Member "npadmin-0.14/npaconsts.h" (22 Nov 2002, 3270 Bytes) of package /linux/misc/old/npadmin-0.14.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /* Copyright (c) 2000 Ben Woodard
    2  * All rights reserved.
    3  *
    4  * This program is free software; you can redistribute it and/or
    5  * modify it under the terms of the GNU General Public Licence
    6  * as published by the Free Software Foundation; either version 2
    7  * of the Licence, or (at your option) any later version.
    8  *
    9  * This program is distributed in the hope that it will be useful,
   10  * but WITHOUT ANY WARRENTY; without even the implied warrenty of
   11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   12  * GNU General Public Licence in the COPYING file for more
   13  * details.
   14  *
   15  * You should have received a copy of the GNU Library General 
   16  * Public License along with the GNU C Library; see the file 
   17  * COPYING.LIB.  If not, write to the Free Software Foundation, 
   18  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
   19  */
   20 
   21 #ifndef __NPACONSTS_H__
   22 #define __NPACONSTS_H__
   23 
   24 /* These apply to operflags */
   25 #define NEED_HOSTMIB_FLAG  0x00000001ul
   26 #define NEED_PRINTMIB_FLAG 0x00000002ul
   27 #define NEED_VENDOR_FLAG   0x00000004ul
   28 #define HAS_HOSTMIB_FLAG   0x00000008ul
   29 #define HAS_PRINTMIB_FLAG  0x00000010ul //2,4,&8 skipped to reduce confusion
   30 
   31 /* these all work together in operflags */
   32 #define HP_VENDOR          0x00000100ul
   33 #define LEX_VENDOR         0x00000200ul
   34 #define XER_VENDOR         0x00000300ul
   35 #define TEK_VENDOR         0x00000400ul
   36 #define QMS_VENDOR         0x00000500ul
   37 #define IBM_VENDOR         0x00000600ul
   38 #define EFI_VENDOR         0x00000700ul
   39 #define FUJI_VENDOR        0x00000800ul
   40 #define RICOH_VENDOR       0X00000900ul
   41 
   42 // these are associated with the vendor flags above but are seperate
   43 #define VENDOR_BITS        0x00000F00ul
   44 #define VENDOR_OFFSET      8 // number of bits to shift left
   45 #define CFGSRC_IDX 0
   46 
   47 // Misc consts
   48 #define LETTER_SHORT_IN     85000ul 
   49 #define LETTER_LONG_IN     110000ul
   50 #define LEGAL_SHORT_IN     LETTER_SHORT_IN 
   51 #define LEGAL_LONG_IN      140000ul
   52 #define TABLOID_SHORT_IN   LETTER_LONG_IN
   53 #define TABLOID_LONG_IN    170000ul
   54 #define EXECUTIVE_SHORT_IN  75000ul
   55 #define EXECUTIVE_LONG_IN  105000ul
   56 #define A4_SHORT_IN         82677ul
   57 #define A4_LONG_IN         116929ul
   58 #define A3_SHORT_IN        109842ul
   59 #define A3_LONG_IN         165354ul
   60 #define B5_SHORT_IN         72834ul
   61 #define B5_LONG_IN         101181ul
   62 #define B4_SHORT_IN        B5_LONG_IN
   63 #define B4_LONG_IN         143307ul
   64 
   65 #define LETTER_SHORT_M     215900ul
   66 #define LETTER_LONG_M      279400ul
   67 #define LEGAL_SHORT_M      LETTER_SHORT_M
   68 #define LEGAL_LONG_M       355600ul
   69 #define TABLOID_SHORT_M    LETTER_LONG_M
   70 #define TABLOID_LONG_M     431800ul
   71 #define EXECUTIVE_SHORT_M  190500ul
   72 #define EXECUTIVE_LONG_M   266700ul
   73 #define A4_SHORT_M         210000ul
   74 #define A4_LONG_M          297000ul
   75 #define A3_SHORT_M         279000ul
   76 #define A3_LONG_M          420000ul
   77 #define B5_SHORT_M         182000ul
   78 #define B5_LONG_M          257000ul
   79 #define B4_SHORT_M         B5_LONG_M
   80 #define B4_LONG_M          364000ul
   81 
   82 #define PCL_C_FLAG       0x01
   83 #define PJL_C_FLAG       0x02
   84 #define PS_C_FLAG        0x04
   85 #define HPGL_C_FLAG      0x08
   86 #define PSPRINTER_C_FLAG 0x10
   87 #define AUTOLANG_C_FLAG  0x20
   88 
   89 #define APPLETALK_C_FLAG 0x01
   90 #define LPD_C_FLAG       0x02
   91 #define NETWARE_C_FLAG   0x04
   92 #define PORT9100_C_FLAG  0x08
   93 
   94 #endif