Advertisement
Guest User

Untitled

a guest
May 25th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.85 KB | None | 0 0
  1. /* SkyStar S2 PCI DVB-S/S2 card based on Conexant cx24120/cx24118 */
  2. #if FE_SUPPORTED(CX24120) && FE_SUPPORTED(ISL6421)
  3. static const struct cx24120_config skystar2_rev3_3_cx24120_config = {
  4.     .i2c_addr = 0x55,
  5.     .request_firmware = flexcop_fe_request_firmware,
  6. };
  7.  
  8. static int skystarS2_rev33_attach(struct flexcop_device *fc, struct i2c_adapter *i2c)
  9. {
  10. //  struct dvb_frontend_ops *ops;
  11.    
  12.     fc->fe = dvb_attach(cx24120_attach, &skystar2_rev3_3_cx24120_config, i2c);
  13.     if (fc->fe == NULL) return 0;
  14.     fc->dev_type = FC_SKYS2_REV33;
  15.     fc->fc_i2c_adap[2].no_base_addr = 1;
  16.     if ( (dvb_attach(isl6421_attach, fc->fe, &fc->fc_i2c_adap[2].i2c_adap, 0x08, 0, 0) == NULL) ) {
  17.         err("ISL6421 could NOT be attached!");
  18.         return 0;
  19.     }
  20.     info("ISL6421 successfully attached.");
  21. //  ops = &fc->fe->ops;
  22.     return 1;
  23. }
  24. #else
  25. #define skystarS2_rev33_attach NULL
  26. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement