Glenn Maynard
37650adbec
Newer kernels store device strings in memory on USB device init. This makes querying them later safe. (Thanks Greg KH)
2005-04-22 01:33:53 +00:00
Glenn Maynard
88023a04db
fix card state lost when another card updates
2005-04-21 06:36:30 +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
76e45504a3
MemoryCardDriverThreaded_Linux compiles (not yet tested)
2005-02-05 19:12:02 +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
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
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
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
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
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
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
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
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
Chris Danford
25319403a1
move usb reset to the main thread to solve large skip on ScreenEnding
2004-06-06 23:48:22 +00:00
Chris Danford
342dc5d792
fix needless refreshes or devices
2004-06-06 18:56:33 +00:00
Chris Danford
8eb7550bf4
fix forced redetect of cards
2004-06-06 18:39:40 +00:00
Chris Danford
9d2c6d078a
clean up formatting
2004-06-06 18:37:57 +00:00
Glenn Maynard
2472ca9979
debugging
2004-06-06 03:23:08 +00:00
Chris Danford
110ec3d331
synchronize access to memory cards between mounting thread and main thread Profile Load/Save
2004-06-06 02:41:16 +00:00
Glenn Maynard
f9a6d8857c
split out GetPortAndLevelFromSerial (currently unused)
2004-05-27 00:12:31 +00:00
Glenn Maynard
97791d82f0
license update
2004-05-15 22:30:30 +00:00
Glenn Maynard
720dd96b90
fix TestWrite
2004-05-11 21:55:04 +00:00
Glenn Maynard
cd8f571d60
remove unneeded header
2004-05-06 09:35:14 +00:00
Glenn Maynard
3527c9dae8
hush harmless warning, fix output
2004-05-05 20:05:09 +00:00
Chris Danford
47cda9c92a
fix name update logic
2004-05-03 00:35:53 +00:00
Chris Danford
6bf3ffc4ce
poll for changes in usb/devices
2004-05-02 23:27:14 +00:00
Chris Danford
51f0b44483
fix reload of usb-storage fails because drives still mounted
2004-05-02 22:16:56 +00:00
Chris Danford
051cc33b43
change linux mem cards to use lsusb instead of crash-happy usbdevfs
2004-05-01 04:40:00 +00:00