• File: hwdata.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/usr/lib/python2.7/site-packages/hwdata.pyc
  • Date Modified: 09/17/2014 3:02 PM
  • File size: 4.38 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

POc@s0dZdddYZdddYZdS(sF Query hwdata database and return decription of vendor and/or device. tUSBcBs8eZdZdZdZddZdZdZRS(s) Interace to usb.ids from hwdata package s/usr/share/hwdata/usb.idsc
Cs|r||_ntj|_d|_|jrtjrit_xt|jjD]h}|j}|jdr|jdrYPqqYqYt|dkrqYqY|jdr|dj	}t|dkrdj
|d}nd}|tj|d|d|<qY|jd	rh|dj	}dj
|d}|igtj|d|<qY|dj	}dj
|d}	|tjkr|	igtj|<qY|	tj|d<qYWnd
S(s Load pci.ids from file to internal data structure.
            parameter 'filename' can specify location of this file
        it#s8# List of known device classes, subclasses and protocolsis		it ts	N(tfilenameRtcachetdevicestopent	readlinestsplitt
startswithtlentlowertjoin(
tselfRtlinetltinterface_idtinterface_nametvendortdevicetdevice_nametvendor_name((s*/usr/lib/python2.7/site-packages/hwdata.pyt__init__s:		 cCsA|j}|jr:|tjkr3tj|dSdSndS(s~ Return description of vendor. Parameter is two byte code in hexa.
            If vendor is unknown None is returned.
        iN(RRRRtNone(RR((s*/usr/lib/python2.7/site-packages/hwdata.pyt
get_vendor@s	cCss|j}|j}|jrl|tjkre|tj|dkr^tj|d|dSdSqodSndS(s Return description of device. Parameters are two byte code variables in hexa.
            If device is unknown None is returned.
        iiN(RRRRR(RRR((s*/usr/lib/python2.7/site-packages/hwdata.pyt
get_deviceMs	N(	t__name__t
__module__t__doc__RRRRRR(((s*/usr/lib/python2.7/site-packages/hwdata.pyRs)	
tPCIcBs8eZdZdZdZddZdZdZRS(s) Interace to pci.ids from hwdata package s/usr/share/hwdata/pci.idsc	Csm|r||_ntj|_d|_|jritjrii}it_xt|jjD]}|j}|jdrq_q_t|dkrq_q_|jdrq_q_|jdr|dj	}dj
|d}|tj|d|<q_|dj	}dj
|d}|ttjjkrQ|igtj|<q_|tj|d<q_WndS(s Load pci.ids from file to internal data structure.
            parameter 'filename' can specify location of this file
        iRis		s	RN(
RRRRRRR	R
RRR
tlisttkeys(	RRtpcirecRRRRRR((s*/usr/lib/python2.7/site-packages/hwdata.pyRcs0		cCsM|j}|jrF|ttjjkr?tj|dSdSndS(s~ Return description of vendor. Parameter is two byte code in hexa.
            If vendor is unknown None is returned.
        iN(RRRRRR R(RR((s*/usr/lib/python2.7/site-packages/hwdata.pyRs	cCs|j}|j}|jr|ttjjkry|ttj|djkrrtj|d|SdSqdSndS(s Return description of device. Parameters are two byte code variables in hexa.
            If device is unknown None is returned.
        iN(RRRRRR R(RRR((s*/usr/lib/python2.7/site-packages/hwdata.pyRs	#N(	RRRRRRRRR(((s*/usr/lib/python2.7/site-packages/hwdata.pyR^s"	
N(((RRR(((s*/usr/lib/python2.7/site-packages/hwdata.pyt<module>sL