On Wed, Jul 06, 2011 at 09:25:05AM +0800, c-aries wrote: > Hi all. > When I read the pl2303 driver source code in linux-2.6.36, I am confuse > about these codes: > > $ cat -n pl2303.c > ... > 125 #define VENDOR_WRITE_REQUEST_TYPE 0x40 > 126 #define VENDOR_WRITE_REQUEST 0x01 > 127 > 128 #define VENDOR_READ_REQUEST_TYPE 0xc0 > 129 #define VENDOR_READ_REQUEST 0x01 > ... > 179 static int pl2303_startup(struct usb_serial *serial) > 180 { > ... > 210 pl2303_vendor_read(0x8484, 0, serial, buf); > 211 pl2303_vendor_write(0x0404, 0, serial); > ... > 236 } > ... > $ > > I download the pl2303 datasheet, but can't find anything related to > vendor specific read, write methods. So I can't figure out what does > 0x8484 and 0x0404 mean. > > Could you tell me where can I find the pl2303 vendor read write methods' > reference? There is no known public pl2303 reference. Rumor has it that Prolific has an internal copy and they share it only with licensees of the chip. You should contact them for more information as they are the only ones who can provide it. The driver was originaly written by reverse engineering the protocol by sniffing the windows driver traffic, so it might be wrong in places. greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html