~ubuntu-branches/ubuntu/trusty/grub2/trusty

« back to all changes in this revision

Viewing changes to grub-core/bus/usb/serial/pl2303.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-01-16 15:18:04 UTC
  • mfrom: (17.6.38 experimental)
  • Revision ID: package-import@ubuntu.com-20140116151804-3foouk7fpqcq3sxx
Tags: 2.02~beta2-2
* Convert patch handling to git-dpm.
* Add bi-endian support to ELF parser (Tomohiro B Berry).
* Adjust restore_mkdevicemap.patch to mark get_kfreebsd_version as static,
  to appease "gcc -Werror=missing-prototypes".
* Cherry-pick from upstream:
  - Change grub-macbless' manual page section to 8.
* Install grub-glue-efi, grub-macbless, grub-render-label, and
  grub-syslinux2cfg.
* grub-shell: Pass -no-pad to xorriso when building floppy images.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
  grub_uint8_t stop_bits;
56
56
  grub_uint8_t parity;
57
57
  grub_uint8_t word_len;
58
 
} __attribute__ ((packed));
 
58
} GRUB_PACKED;
59
59
 
60
60
static void
61
61
real_config (struct grub_serial_port *port)
125
125
                        0x22, 3, 0, 0, 0);
126
126
 
127
127
  grub_usb_control_msg (port->usbdev, GRUB_USB_REQTYPE_VENDOR_OUT,
128
 
                        1, 0, 0x61, 0, 0);
 
128
                        1, 0, port->config.rtscts ? 0x61 : 0, 0, 0);
129
129
  port->configured = 1;
130
130
}
131
131
 
146
146
 
147
147
  real_config (port);
148
148
 
149
 
  grub_usb_bulk_write (port->usbdev, port->out_endp->endp_addr, 1, &cc);
 
149
  grub_usb_bulk_write (port->usbdev, port->out_endp, 1, &cc);
150
150
}
151
151
 
152
152
static grub_err_t
208
208
    return 0;
209
209
 
210
210
  return grub_usbserial_attach (usbdev, configno, interfno,
211
 
                                &grub_pl2303_driver);
 
211
                                &grub_pl2303_driver,
 
212
                                GRUB_USB_SERIAL_ENDPOINT_LAST_MATCHING,
 
213
                                GRUB_USB_SERIAL_ENDPOINT_LAST_MATCHING);
212
214
}
213
215
 
214
216
static struct grub_usb_attach_desc attach_hook =