~ubuntu-branches/ubuntu/saucy/hplip/saucy-proposed

« back to all changes in this revision

Viewing changes to io/hpmud/musb.c

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-05-26 11:20:39 UTC
  • mfrom: (1.5.6) (31.1.3 precise)
  • Revision ID: package-import@ubuntu.com-20120526112039-bevxczegxnbyr5m7
Tags: 3.12.4-1
* New upstream release
* Switch to source/format 3.0 (quilt) - drop dpatch
* Refreshed debian/patches
* dh_autoreconf debian/autogen.sh & set local-options single-debian-patch
* Update to debian/compat -> 9
* Fix "hardened build flags" patch from Moritz - thanks (Closes: #667828)
* Fix "duplex descriptor uninitialized" patch from Matej (Closes: #583273)
* Fix "please migrate to kde-runtime" patch from Pino (Closes: #666544)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
23
  Client/Server generic message format (see messaging-protocol.doc):
24
24
 
25
 
  Author: Naga Samrat Chowdary Narla
 
25
  Author: Naga Samrat Chowdary Narla, Sarbeswar Meher
26
26
\*****************************************************************************/
27
27
 
28
28
#include "hpmud.h"
91
91
   "ff/4/1",
92
92
   "ff/1/0",
93
93
   "ff/cc/0",
 
94
   "ff/2/10",
94
95
};
95
96
 
96
97
static int fd_class[MAX_FD] =
97
98
{
98
 
   0,0x7,0x7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 
99
   0,0x7,0x7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
99
100
};
100
101
 
101
102
static int fd_subclass[MAX_FD] =
102
103
{
103
 
   0,0x1,0x1,0x1,0x2,0x3,0xff,0xd4,0x4,0x1,0xcc,
 
104
   0,0x1,0x1,0x1,0x2,0x3,0xff,0xd4,0x4,0x1,0xcc,0x2,
104
105
};
105
106
 
106
107
static int fd_protocol[MAX_FD] =
107
108
{
108
 
   0,0x2,0x3,0x1,0x1,0x1,0xff,0,0x1,0,0,
 
109
   0,0x2,0x3,0x1,0x1,0x1,0xff,0,0x1,0,0,0x10,
109
110
};
110
111
 
111
112
static const unsigned char venice_power_on[] = {0x1b, '%','P','u','i','f','p','.','p','o','w','e','r',' ','1',';',
1490
1491
         fd = FD_ff_4_1;
1491
1492
         break;
1492
1493
      case HPMUD_SOAPSCAN_CHANNEL:
1493
 
         fd = FD_ff_2_1;   
 
1494
         fd = FD_ff_2_1;
1494
1495
         break;
1495
1496
      case HPMUD_SOAPFAX_CHANNEL:
1496
 
         fd = FD_ff_3_1;   
 
1497
         fd = FD_ff_3_1;
1497
1498
         break;
1498
1499
      case HPMUD_MARVELL_SCAN_CHANNEL:
1499
 
         fd = FD_ff_ff_ff;   
 
1500
         fd = FD_ff_ff_ff;
1500
1501
         break;
1501
1502
      case HPMUD_MARVELL_FAX_CHANNEL:  //using vendor specific C/S/P codes for fax too
1502
 
         fd = FD_ff_1_0;   
 
1503
         fd = FD_ff_1_0;
1503
1504
         break;
1504
1505
      case HPMUD_LEDM_SCAN_CHANNEL:  //using vendor specific C/S/P codes for fax too
1505
 
        fd = FD_ff_cc_0;
 
1506
         fd = FD_ff_cc_0;
1506
1507
         break;
1507
1508
      default:
1508
1509
         stat = HPMUD_R_INVALID_SN;