Commit Graph
135 Commits
Author SHA1 Message Date
Ben Anderson 0db665d4d6 Thorough(!) remodeling of the arch/ directory and the contents therein; fixed link-time warnings on GCC and should make things a lot easier to manage. A pile of other random things too, mostly cleanups and getting things to work with the remodeled arch/ directory. 2005-03-14 06:44:38 +00:00
Glenn Maynard aef09d0872 quiet down 2005-02-21 03:48:39 +00:00
Glenn Maynard 4b726d2e23 disable whitelisting (will hopefully go away entirely); fix product trimming; better logging 2005-02-21 03:47:47 +00:00
Glenn Maynard f1e84f98b8 driver update 2005-02-06 19:49:34 +00:00
Glenn Maynard d14ea1ee41 compiles (doesn't support everything yet) 2005-02-06 05:46:07 +00:00
Glenn Maynard 7a21e95ede memory card work (linux update in a few minutes) 2005-02-06 05:11:57 +00:00
Glenn Maynard 7e1be2bde3 fix tabbing 2005-02-06 00:25:29 +00:00
Glenn Maynard bc3f8803c3 minor cleanups 2005-02-05 23:56:23 +00:00
Glenn Maynard 9c55974c63 remove MemoryCardDriverThreaded 2005-02-05 19:18:49 +00:00
Glenn Maynard 76e45504a3 MemoryCardDriverThreaded_Linux compiles (not yet tested) 2005-02-05 19:12:02 +00:00
Glenn Maynard c7434d29de simplify; pausing and threading is handled above (Linux update in a few
minutes)
2005-02-05 19:02:25 +00:00
Ben Anderson 25ea8e4825 Fix compilation 2005-01-27 23:58:37 +00:00
Glenn Maynard 39604143f6 mount and unmount FILEMAN mountpoints in MemoryCardManager,
not drivers; use timeout FS; don't pass mountpoints to drivers since
they never need to know them
2005-01-27 19:23:54 +00:00
Glenn Maynard 7efbea62aa cleanup 2005-01-27 19:16:32 +00:00
Glenn Maynard 8af4296b08 simplify a bit 2005-01-27 04:45:20 +00:00
Glenn Maynard cadbdf2bee remove MemoryCardDriverThreaded::UnmountMountPoint; remount the fs instead (makes
the timeout FS simpler)
use timeout FS in windows memory card code for testing
2005-01-27 04:39:10 +00:00
Glenn Maynard 3b25fd6c60 sysfs fixes 2005-01-27 04:36:11 +00:00
Glenn Maynard 41622d238c Use sysfs to probe memory cards. This has several advantages:
all of the information we need is in one place, with proper links so we
 don't have to do weird hacks to connect data together

 we don't have to touch /proc/bus/usb/devices; doing so generates USB
 messages to all devices, which can cause problems

 works for all removable devices; usb-storage or ub should both work with
 no changes, as long as mountpoints exist in /etc/fstab

 doesn't need to fork lsusb

Old support is removed; unless serious, unfixable problems are found with
this method, the old code is too big and confusing to keep around.  This
code needs more testing.
2005-01-19 18:11:13 +00:00
Glenn Maynard dac3c2b978 update 2004-12-07 00:09:47 +00:00
Glenn Maynard 495a418884 Previously, the main mount loop was unlocking the thread and then immediately
re-locking it.  In some threads implementations (Linux 2.6), this causes the
mount thread to hog the lock, which causes SetMountThreadState to hang.  Move
the "check and delay" part of the mount thread outside of the lock, so other
threads have opportunity to get the lock.
2004-12-07 00:06:59 +00:00
Glenn Maynard 4bde245842 m_fd isn't used anymore 2004-12-06 23:47:23 +00:00
Chris Danford c23c0bec17 improve mapping from scsi index to scsi device 2004-10-15 13:47:54 +00:00
Chris Danford d906bc83e7 don't allow Iomega micro drives 2004-10-12 01:36:37 +00:00
Chris Danford f4f02e23a2 show a different string for "card inserted, but we don't yet know the name on the card" 2004-10-09 09:57:12 +00:00
Chris Danford 269768f856 HACK: Don't do the temp mount and the write test in the mount thread. 2004-10-09 09:34:30 +00:00
Chris Danford e1a8aa0fbb add more to whitelist 2004-10-08 07:29:51 +00:00
Chris Danford 332dd17b41 fix compile error 2004-10-07 23:44:12 +00:00
Chris Danford 68fcb42954 add more devices to whitelist 2004-10-07 23:17:16 +00:00
Chris Danford c47b7fb124 clean up whitelist, add entry for Creative Labs MuVo 2004-10-07 19:48:24 +00:00
Chris Danford 322b40e1f6 fix change I reverted. Oops. 2004-10-06 03:28:33 +00:00
Steve Checkoway 1bcad560cc What is this? It isn't in the header file and no linker errors result from not including it. 2004-10-05 11:00:53 +00:00
Steve Checkoway d9c08228dd Fix guard. 2004-10-05 10:57:27 +00:00
Chris Danford 952fef50c6 disallow Rio Carbon 2004-10-03 21:10:18 +00:00
Chris Danford dc0ef1fe63 add USB device whitelist 2004-10-03 20:58:12 +00:00
Chris Danford ffca2c6ae5 fix mounting of devices that are slow to initialize 2004-10-03 08:06:47 +00:00
Glenn Maynard 1d5e04b024 real fix for Windows memcards 2004-09-05 23:45:57 +00:00
Chris Danford bac085dc6d simplify 2004-08-17 06:35:42 +00:00
Chris Danford 925c349d26 clean up formatting 2004-08-17 06:16:49 +00:00
Chris Danford f43fc93985 fix windows compile 2004-08-17 05:59:41 +00:00
Chris Danford 11a8029493 memory card cleanup 2004-08-17 05:50:51 +00:00
Chris Danford ae319bd14e refactor common unmount code 2004-08-14 19:38:37 +00:00
Glenn Maynard fa9b61a9d6 fix MemoryCardDriverThreaded_Windows chewing CPU 2004-08-12 05:42:47 +00:00
Chris Danford e435165014 clean up memory card logic:
- Don't do the OS mount for cards during the attract screens.  Only do OS mounts in the time between BeginGame and PlayersFinalized.
 - Remove logic for fast load of a Profile from the MemoryCard.  Instead, load the whole profile all at once on PlayersFinalized.
2004-08-09 05:01:24 +00:00
Chris Danford 551800cceb Fix unnecessary remounts of cards that weren't changed since last update.\nDon't do OS mounts or unmounts while after cards are locked. It can cause skips. 2004-08-08 18:44:41 +00:00
Glenn Maynard d44e35b889 close m_fd 2004-07-19 20:39:52 +00:00
Glenn Maynard c81e737d85 fix thread busy looping if bus/usb/devices isn't available 2004-07-17 20:44:37 +00:00
Glenn Maynard fcf46a9f61 fix "pure virtual method called" on quit 2004-07-17 20:38:59 +00:00
Glenn Maynard e47f331924 move some stuff out of arch.cpp, so arch drivers aren't all cross-dependent 2004-07-07 20:11:30 +00:00
Chris Danford 1296cd775d add port detection through lsusb 2004-06-28 05:23:55 +00:00
Glenn Maynard cd59c6a68b cleanup 2004-06-16 04:07:19 +00:00